You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by Paul Dermody <pa...@miradorsoftware.com> on 2001/03/28 16:17:33 UTC

Soap examples

Hi there
Ive installed soap on the weblogic app server
Im attempting to run the examples included with soap.
All of them are coming back with the same error


This test assumes a server URL of
http://localhost:8080/soap/server/rpcrouter
Deploying the addressbook service...
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client; msg=A
'htt
p://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
'faultcode
' element.; targetException=java.lang.IllegalArgumentException: A
'http://schema
s.xmlsoap.org/soap/envelope/:Fault' element must contain a: 'faultcode'
element.
]
        at org.apache.soap.rpc.Call.invoke(Call.java:244)
        at
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManag
erClient.java:127)
        at
org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClie
nt.java:140)
        at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient
.java, Compiled Code)
.
Verify that its there
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client;
msg=Unable
 to resolve namespace URI for 'ns2'.;
targetException=java.lang.IllegalArgumentE
xception: Unable to resolve namespace URI for 'ns2'.]
        at org.apache.soap.rpc.Call.invoke(Call.java:244)
        at
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManag
erClient.java:127)

//======================================================

when deploying the deploymentDescriptor.xml the above fault appears
the deployement descriptor looks like this

//=====================================================
<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
             id="urn:AddressFetcher">
  <isd:provider type="java"
                scope="Application"
                methods="getAddressFromName addEntry getAllListings
putListings">
    <isd:java class="samples.addressbook.AddressBook" static="false"/>
  </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="urn:xml-soap-address-demo" qname="x:address"
             javaType="samples.addressbook.Address"
 
java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
 
xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
    <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
             xmlns:x="urn:xml-soap-address-demo" qname="x:phone"
             javaType="samples.addressbook.PhoneNumber"
 
java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
 
xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
  </isd:mappings>    
</isd:service>







Is there anything i can do to rectify this.
Thanks for reading

Paul

Re: Soap examples

Posted by Scott Nichol <sn...@computer.org>.
Paul,

What versions of SOAP and Xerces are you using?  If you use the SOAP 2.1 release, you should use
Xerces 1.2.3.  It appears that 1.3.1 does not work.  I am not certain whether the nightly builds
work with 1.3.1.  BTW, the nightly builds fix many issues present in the SOAP 2.1 release.

Scott Nichol

----- Original Message -----
From: "Paul Dermody" <pa...@miradorsoftware.com>
To: <so...@xml.apache.org>
Sent: Wednesday, March 28, 2001 09:17
Subject: Soap examples


> Hi there
> Ive installed soap on the weblogic app server
> Im attempting to run the examples included with soap.
> All of them are coming back with the same error
>
>
> This test assumes a server URL of
> http://localhost:8080/soap/server/rpcrouter
> Deploying the addressbook service...
> Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client; msg=A
> 'htt
> p://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
> 'faultcode
> ' element.; targetException=java.lang.IllegalArgumentException: A
> 'http://schema
> s.xmlsoap.org/soap/envelope/:Fault' element must contain a: 'faultcode'
> element.
> ]
>         at org.apache.soap.rpc.Call.invoke(Call.java:244)
>         at
> org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManag
> erClient.java:127)
>         at
> org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClie
> nt.java:140)
>         at
> org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient
> .java, Compiled Code)
> .
> Verify that its there
> Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client;
> msg=Unable
>  to resolve namespace URI for 'ns2'.;
> targetException=java.lang.IllegalArgumentE
> xception: Unable to resolve namespace URI for 'ns2'.]
>         at org.apache.soap.rpc.Call.invoke(Call.java:244)
>         at
> org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManag
> erClient.java:127)
>
> //======================================================
>
> when deploying the deploymentDescriptor.xml the above fault appears
> the deployement descriptor looks like this
>
> //=====================================================
> <isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
>              id="urn:AddressFetcher">
>   <isd:provider type="java"
>                 scope="Application"
>                 methods="getAddressFromName addEntry getAllListings
> putListings">
>     <isd:java class="samples.addressbook.AddressBook" static="false"/>
>   </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="urn:xml-soap-address-demo" qname="x:address"
>              javaType="samples.addressbook.Address"
>
> java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
>
> xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
>     <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>              xmlns:x="urn:xml-soap-address-demo" qname="x:phone"
>              javaType="samples.addressbook.PhoneNumber"
>
> java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
>
> xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
>   </isd:mappings>
> </isd:service>
>
>
>
>
>
>
>
> Is there anything i can do to rectify this.
> Thanks for reading
>
> Paul