خرید بک لینک

Vote count: 0

I'm trying to coect to a c# web service, with a java client. The web service uses both, the Soap 1.1 and Soap 1.2 protocol. I only need the Soap 1.1 part.

When I try to initialize the Service, on the line: Service service = SystemIntegrationService.create(wsdlLocation, serviceName);

a NullPointerException is thrown.

java.lang.NullPointerException
at com.sun.xml.inteal.ws.model.wsdl.WSDLOperationImpl.freeze(Unknown Source)
at com.sun.xml.inteal.ws.model.wsdl.WSDLPortTypeImpl.freeze(Unknown Source)
at com.sun.xml.inteal.ws.model.wsdl.WSDLBoundPortTypeImpl.freeze(Unknown Source)
at com.sun.xml.inteal.ws.model.wsdl.WSDLModelImpl.freeze(Unknown Source)
at com.sun.xml.inteal.ws.wsdl.parser.RuntimeWSDLParser.parse(Unknown Source)
at com.sun.xml.inteal.ws.wsdl.parser.RuntimeWSDLParser.parse(Unknown Source)
at com.sun.xml.inteal.ws.wsdl.parser.RuntimeWSDLParser.parse(Unknown Source)
at com.sun.xml.inteal.ws.client.WSServiceDelegate.parseWSDL(Unknown Source)
at com.sun.xml.inteal.ws.client.WSServiceDelegate.<init>(Unknown Source)
at com.sun.xml.inteal.ws.client.WSServiceDelegate.<init>(Unknown Source)
at com.sun.xml.inteal.ws.client.WSServiceDelegate.<init>(Unknown Source)
at com.sun.xml.inteal.ws.client.WSServiceDelegate.<init>(Unknown Source)
at com.sun.xml.inteal.ws.spi.ProviderImpl.createServiceDelegate(Unknown Source)
at javax.xml.ws.Service.<init>(Unknown Source)
at org.tempuri.SystemIntegrationService.<init>(SystemIntegrationService.java:58)
at _Main.APIWindows.<init>(APIWindows.java:72)
at _Main.APIWindows$1.run(APIWindows.java:49)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

My initialization code:

       URL wsdlLocation = new URL("http://172.24.184.22:51156/LabX/SystemIntegrationService/mex");

       String targetNamespace="http://tempuri.org/";
       QName serviceName = new QName(targetNamespace, "SystemIntegrationService");
       QName portName = new QName(targetNamespace, "BasicHttpBinding_BasicSystemIntegrationService");

       Service service = SystemIntegrationService.create(wsdlLocation, serviceName);
       service.addPort(portName, "tns:WSDualHttpBinding_SystemIntegrationService", "http://172.24.184.22:51155/LabX/SystemIntegrationService");

       proxy = service.getPort(BasicSystemIntegrationService.class);  

asked 3 mins ago

- - , .

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 19 اسفند 1394 ساعت: 18:47

صفحه بندی