从GAE / J调用SOAP服务

时间:2011-04-11 09:35:59

标签: java web-services google-app-engine soap jax-ws

我想从我的GAE应用程序中拨打肥皂。它在localhost上正常工作,但在部署时抛出异常

 ....
com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection <init>: Unable to make javax.xml.ws.wsaddressing.W3CEndpointReference.address accessible.
java.lang.SecurityException: java.lang.IllegalAccessException: Reflection is not allowed on private javax.xml.ws.wsaddressing.W3CEndpointReference$Address javax.xml.ws.wsaddressing.W3CEndpointReference.address
    at com.google.appengine.runtime.Request.process-fe1b1a37f7387808(Request.java)
    at com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection.<init>(Accessor.java:220)
    at com.sun.xml.bind.AccessorFactoryImpl.createFieldAccessor(AccessorFactoryImpl.java:66)
    at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.createFieldSeed(RuntimeClassInfoImpl.java:252)
....
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,50]
Message: White spaces are required between publicId and systemId.
    at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:591)
    at com.sun.xml.ws.util.xml.XMLStreamReaderFilter.next(XMLStreamReaderFilter.java:92)
    at com.sun.xml.ws.streaming.XMLStreamReaderUtil.next(XMLStreamReaderUtil.java:76)

实际上,问题是我现在可以从GAE / J访问SOAP服务吗?从本地环境和GAE访问它有什么区别?当然,我如何解决我的错误?

1 个答案:

答案 0 :(得分:0)

实际上肥皂服务器的权限存在问题。 GAE支持版本1.4.2 (link)的肥皂。