Here is the stacktrace you asked for
anonymous wrote :
| javax.xml.rpc.ServiceException: java.lang.NullPointerException
| at
org.jboss.webservice.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:135)
| at
coza.healthbridge.netcare.client.TestClient.netcareSimpleTest(TestClient.java:127)
| at
coza.healthbridge.netcare.client.TestClient.main(TestClient.java:282)
|
| Caused by: java.lang.NullPointerException
| at java.util.StringTokenizer.(Unknown Source)
| at java.util.StringTokenizer.(Unknown Source)
| at
org.jboss.webservice.deployment.ServiceDescription.getPackageName(ServiceDescription.java:947)
| at
org.jboss.webservice.deployment.ServiceDescription.initTypeMappings(ServiceDescription.java:894)
| at
org.jboss.webservice.deployment.ServiceDescription.initServiceDescription(ServiceDescription.java:141)
| at
org.jboss.webservice.deployment.ServiceDescription.(ServiceDescription.java:108)
| at
org.jboss.webservice.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:130)
| ... 2 more
|
here is the WSDL
anonymous wrote :
| <?xml version="1.0" encoding="UTF-8"?>
| <wsdl:definitions name="SynchronousSoapReceiver"
targetNamespace="http://netcare.co.za/xi/switchtonetcare"
xmlns:rfc="urn:sap-com:document:sap:rfc:functions"
xmlns:p1="http://netcare.co.za/xi/switchtonetcare"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
| <wsdl:types>
| <xsd:schema
targetNamespace="urn:sap-com:document:sap:rfc:functions"
xmlns="urn:sap-com:document:sap:rfc:functions"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
| <xsd:element name="Z_SOAP_ECHOSERVICE.Response">
| <xsd:complexType>
| <xsd:all>
| <xsd:element name="DATAOUT" minOccurs="0">
| <xsd:simpleType>
| <xsd:restriction base="xsd:string">
| <xsd:maxLength value="32000"/>
| </xsd:restriction>
| </xsd:simpleType>
| </xsd:element>
| </xsd:all>
| </xsd:complexType>
| </xsd:element>
| <xsd:element name="Z_SOAP_ECHOSERVICE">
| <xsd:complexType>
| <xsd:all>
| <xsd:element name="DATAIN">
| <xsd:simpleType>
| <xsd:restriction base="xsd:string">
| <xsd:maxLength value="32000"/>
| </xsd:restriction>
| </xsd:simpleType>
| </xsd:element>
| </xsd:all>
| </xsd:complexType>
| </xsd:element>
| </xsd:schema>
| </wsdl:types>
| <wsdl:message name="rfc.Z_SOAP_ECHOSERVICE.Input">
| <wsdl:part name="parameters" element="rfc:Z_SOAP_ECHOSERVICE"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"/>
| </wsdl:message>
| <wsdl:message name="rfc.Z_SOAP_ECHOSERVICE.Output">
| <wsdl:part name="parameters"
element="rfc:Z_SOAP_ECHOSERVICE.Response"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"/>
| </wsdl:message>
| <wsdl:portType name="SynchronousSoapReceiver">
| <wsdl:operation name="SynchronousSoapReceiver">
| <wsdl:input message="p1:rfc.Z_SOAP_ECHOSERVICE.Input"/>
| <wsdl:output message="p1:rfc.Z_SOAP_ECHOSERVICE.Output"/>
| </wsdl:operation>
| </wsdl:portType>
| <wsdl:binding name="SynchronousSoapReceiverBinding"
type="p1:SynchronousSoapReceiver" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
| <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
| <wsdl:operation name="SynchronousSoapReceiver">
| <soap:operation
soapAction="http://sap.com/xi/WebService/soap1.1"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
| <wsdl:input>
| <soap:body use="literal"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
| </wsdl:input>
| <wsdl:output>
| <soap:body use="literal"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
| </wsdl:output>
| </wsdl:operation>
| </wsdl:binding>
| <wsdl:service name="SynchronousSoapReceiverService">
| <wsdl:port name="SynchronousSoapReceiverPort"
binding="p1:SynchronousSoapReceiverBinding"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
| <soap:address
|
location="http://ntcdxi01:50100/XISOAPAdapter/MessageServlet?channel=:DXI_Client_400:SynchronousWebService&version=3.0&Sender.Service=DXI_Client_400&Interface=http%3A%2F%2Fnetcare.co.za%2Fxi%2Fswitchtonetcare%5ESynchronousSoapReceiver"
| xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
| </wsdl:port>
| </wsdl:service>
| </wsdl:definitions>
|
here is my code
| QName service = new QName("http://netcare.co.za/xi/switchtonetcare",
"SynchronousSoapReceiverService");
| QName port = new QName("http://netcare.co.za/xi/switchtonetcare",
"SynchronousSoapReceiverPort");
| QName operation = new QName("SynchronousSoapReceiver");
| QName arg = new QName("urn:sap-com:document:sap:rfc:functions");
| URL wsdlUrl = new URL("file:///D:/SynchronousSoapReceiver.wsdl");
| ServiceFactory factory = ServiceFactory.newInstance();
| Service service = factory.createService(wsdlUrl, service);
| Call call = service.createCall(port, operation);
| Object oRet = call.invoke(new Object[] { getDoc().getDocumentElement() });
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3941459#3941459
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3941459
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user