2 Replies Latest reply on May 3, 2005 1:01 PM by Kevin Curley

    Problem with Sun Wireless Toolkit Soap Request to JBoss 4 We

    Kevin Curley Newbie

      Hi All,

      I have a web service running in JBoss 4. Its a servlet style web service and is a document literal type service. Now I have a MIDlet in the Sun Wirless Toolkit, that is using the JSR 172 Web Services interface, that calls this web service. This is the SOAP message (as caught by the Axis TCP Monitor).

      <?xml version="1.0" encoding="utf-8"?>
      <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:tns="http://webservice.betting/types">
      <soap:Body>
      <tns:logOn>
      <String_1 xmlns="">fbrody</String_1>
      <String_2 xmlns="">fbrody123</String_2>
      </tns:logOn>
      </soap:Body>
      </soap:Envelope>


      Here are the relevant sections of the WSDL.

      <?xml version="1.0" encoding="UTF-8"?>
      <definitions name="GameListerService" targetNamespace="http://webservice.betting" xmlns:tns="http://webservice.betting" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://webservice.betting/types" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns="http://schemas.xmlsoap.org/wsdl/">

      <schema targetNamespace="http://webservice.betting/types" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://webservice.betting/types" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">





















      <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>

      <soap:operation soapAction=""/>

      <soap:body use="literal"/>


      <soap:body use="literal"/>





      <soap:address location="http://localhost:8080/Betting/Betting"/>




      But I get the following error.

      18:26:14,751 DEBUG [MessagePart] Exit: SOAPPart::getAsString(): <soapenv:Envelop
      e xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://ww
      w.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <soapenv:Body>
      <soapenv:Fault>
      soapenv:Client
      Namespace URI cannot be null

      </soapenv:Fault>
      </soapenv:Body>
      </soapenv:Envelope>

      In my console window I also see some errirs about the namespace being null and then later on a NullPointerException in axis.


      Presumably this has got to do with the empty namespace on the SOAP Message parameters, String_1 and String_2. I have no problems to calls without parameters.
      Anybody know what I can do about this.

      When I preview this post, the WSDL doesnt format correctly despite everything being disabled. So when I submit if it doesnt format properly, I apologise.

      Thanks.