You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@ws.apache.org by Asher Foa <as...@optibase.com> on 2002/08/27 19:44:59 UTC

Default mappings for Apache SOAP Server

Hello All,
I am having problems calling an Apache based SOAP server from an MS Soap
Toolkit (v2.0) client.

  I read your article in the Apache SOAP (v2.3.1) toolkit, and I have a
couple of questions that
 The problem that you describe is your article under SOAP Problems/Depending
on xsi:type.
Adding type mapping to the service's deployment descriptor, regarding this
there are two issues:
1. In the request snippet the arguments are named arg1 and x:arg2, but in
the deployment descriptor the qname is for arg and x:arg, it looks like a
type-o....
2. When I add a mapping element to the deployment descriptor with the
xmlns:z="" attribute it's not a valid XML, I try to open this XML with
Internet Explorer for example and it displays the following error:
Only a default namespace can have an empty URI. Error processing resource 

Further more when trying to deploy the service using that deployment
descriptor, I get an exception:
[Fatal Error] :16:83: The value of the attribute "xmlns:z" is invalid.
Prefixed namespace bindings may not be empty.
Exception in thread "main" org.xml.sax.SAXParseException: The value of the
attribute "xmlns:zx" is invalid. Prefixed namespace bindings may not be
empty.
        at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:267)
        at
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:20
1)
        at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:2
29)



Regards,
      Asher Foa
      Software Developer
      Optibase Ltd.





Re: Default mappings for Apache SOAP Server

Posted by Scott Nichol <sn...@scottnichol.com>.
You are correct about the typographical errors in the deployment descriptor.

I am able to view similar XML in IE 5.5 SP1.  Specifically, the file is:

<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
             id="urn:xmltoday-delayed-quotes">
  <isd:provider type="java"
                scope="Application"
                methods="getQuote">
    <isd:java class="samples.stockquote.StockQuoteService"/>
  </isd:provider>

<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListene
r>
  <isd:mappings>
    <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
     xmlns:x="" qname="x:arg0"

xml2JavaClassName="org.apache.soap.encoding.soapenc.StringDeserializer"/>
  </isd:mappings>
</isd:service>

I am also able to deploy with this deployment descriptor.  What versions of
IE and Xerces are you using?  Perhaps mine are just more forgiving.

Finally, let me point out that you don't have to use the Apache SOAP
workaround if you use the low-level API from the MS STK.  See
http://www.scottnichol.com/vbclientapachesoap.htm for an example.

Scott Nichol

----- Original Message -----
From: "Asher Foa" <as...@optibase.com>
To: <so...@xml.apache.org>
Sent: Tuesday, August 27, 2002 1:44 PM
Subject: Default mappings for Apache SOAP Server


Hello All,
I am having problems calling an Apache based SOAP server from an MS Soap
Toolkit (v2.0) client.

  I read your article in the Apache SOAP (v2.3.1) toolkit, and I have a
couple of questions that
 The problem that you describe is your article under SOAP Problems/Depending
on xsi:type.
Adding type mapping to the service's deployment descriptor, regarding this
there are two issues:
1. In the request snippet the arguments are named arg1 and x:arg2, but in
the deployment descriptor the qname is for arg and x:arg, it looks like a
type-o....
2. When I add a mapping element to the deployment descriptor with the
xmlns:z="" attribute it's not a valid XML, I try to open this XML with
Internet Explorer for example and it displays the following error:
Only a default namespace can have an empty URI. Error processing resource

Further more when trying to deploy the service using that deployment
descriptor, I get an exception:
[Fatal Error] :16:83: The value of the attribute "xmlns:z" is invalid.
Prefixed namespace bindings may not be empty.
Exception in thread "main" org.xml.sax.SAXParseException: The value of the
attribute "xmlns:zx" is invalid. Prefixed namespace bindings may not be
empty.
        at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:267)
        at
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:20
1)
        at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:2
29)



Regards,
      Asher Foa
      Software Developer
      Optibase Ltd.





--
To unsubscribe, e-mail:   <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>




Re: Default mappings for Apache SOAP Server

Posted by Scott Nichol <sn...@scottnichol.com>.
You are correct about the typographical errors in the deployment descriptor.

I am able to view similar XML in IE 5.5 SP1.  Specifically, the file is:

<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
             id="urn:xmltoday-delayed-quotes">
  <isd:provider type="java"
                scope="Application"
                methods="getQuote">
    <isd:java class="samples.stockquote.StockQuoteService"/>
  </isd:provider>

<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListene
r>
  <isd:mappings>
    <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
     xmlns:x="" qname="x:arg0"

xml2JavaClassName="org.apache.soap.encoding.soapenc.StringDeserializer"/>
  </isd:mappings>
</isd:service>

I am also able to deploy with this deployment descriptor.  What versions of
IE and Xerces are you using?  Perhaps mine are just more forgiving.

Finally, let me point out that you don't have to use the Apache SOAP
workaround if you use the low-level API from the MS STK.  See
http://www.scottnichol.com/vbclientapachesoap.htm for an example.

Scott Nichol

----- Original Message -----
From: "Asher Foa" <as...@optibase.com>
To: <so...@xml.apache.org>
Sent: Tuesday, August 27, 2002 1:44 PM
Subject: Default mappings for Apache SOAP Server


Hello All,
I am having problems calling an Apache based SOAP server from an MS Soap
Toolkit (v2.0) client.

  I read your article in the Apache SOAP (v2.3.1) toolkit, and I have a
couple of questions that
 The problem that you describe is your article under SOAP Problems/Depending
on xsi:type.
Adding type mapping to the service's deployment descriptor, regarding this
there are two issues:
1. In the request snippet the arguments are named arg1 and x:arg2, but in
the deployment descriptor the qname is for arg and x:arg, it looks like a
type-o....
2. When I add a mapping element to the deployment descriptor with the
xmlns:z="" attribute it's not a valid XML, I try to open this XML with
Internet Explorer for example and it displays the following error:
Only a default namespace can have an empty URI. Error processing resource

Further more when trying to deploy the service using that deployment
descriptor, I get an exception:
[Fatal Error] :16:83: The value of the attribute "xmlns:z" is invalid.
Prefixed namespace bindings may not be empty.
Exception in thread "main" org.xml.sax.SAXParseException: The value of the
attribute "xmlns:zx" is invalid. Prefixed namespace bindings may not be
empty.
        at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:267)
        at
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:20
1)
        at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:2
29)



Regards,
      Asher Foa
      Software Developer
      Optibase Ltd.





--
To unsubscribe, e-mail:   <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>




--
To unsubscribe, e-mail:   <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>