You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Mukul <mu...@yahoo.com> on 2003/02/07 07:43:07 UTC
Problem running SOAP sample in Apache SOAP 2.3.1
Hello ,
I gave incomplete information in my previous mail
about this problem. I am specifying the parameter
values as below.
ID -> urn:AddressFetcher
Scope -> Application
Methods -> getAddressFromName addEntry getAllListings
putListings
Provider Type -> Java
Provider Class -> samples.addressbook.AddressBook
Static -> No
Type Mappings
-------------
No. of mappings -> 2 (is this correct??)
type mappings for the 1st object --
Encoding style -> SOAP
Element Type ->
Namespace URI :
/**problem seems to be in the part below**/
http://schemas.xmlsoap.org/soap/encoding/
Local Part: xml-soap-address-demo:address
/**end of problem area**/
Java Type -> samples.addressbook.Address
Java to XML Serializer ->
org.apache.soap.encoding.soapenc.BeanSerializer
XML to Java Deserializer ->
org.apache.soap.encoding.soapenc.BeanSerializer
Similary I give type mappings for the 2nd object (for
PhoneNumber)
When I deploy the service, I get the message "Service
urn:AddressFetcher deployed."
When I try to invoke a method of this service from
command line as -
java samples.addressbook.PutAddress
http://localhost:8080/soap/servlet/rpcrouter "John
Doe" 123 "Main Street" AnyTown SS 12345 800 555 1212
I get the error message "Generated fault:
[Attributes={}] [faultCode=SOAP-ENV:Client]
[faultString=No Des
erializer found to deserialize a
'urn:xml-soap-address-demo:address' using encod
ing style
'http://schemas.xmlsoap.org/soap/encoding/'.]
[faultActorURI=/soap/ser
vlet/rpcrouter] [DetailEntries=] [FaultEntries=] "
When I see the service properties in List option, I
see in Type Mappings section elementType appearing as
"elementType=http://schemas.xmlsoap.org/soap/encoding/:xml-soap-address-demo:address".
It seems to me, problem is in this part.
Can somebody please help me with this. I'll appreciate
an early response.
Regards,
Mukul
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
Re: Problem running SOAP sample in Apache SOAP 2.3.1
Posted by Mukul <mu...@yahoo.com>.
thanks a lot! I am now able to call the SOAP service..
Regards,
Mukul
--- Scott Nichol <sn...@scottnichol.com> wrote:
> See my comment below
>
> On 6 Feb 2003 at 22:43, Mukul wrote:
>
> > Hello ,
> > I gave incomplete information in my previous
> mail
> > about this problem. I am specifying the parameter
> > values as below.
> >
> > ID -> urn:AddressFetcher
> >
> > Scope -> Application
> >
> > Methods -> getAddressFromName addEntry
> getAllListings
> > putListings
> >
> > Provider Type -> Java
> >
> > Provider Class -> samples.addressbook.AddressBook
> > Static -> No
> >
> > Type Mappings
> > -------------
> > No. of mappings -> 2 (is this correct??)
> >
> > type mappings for the 1st object --
> > Encoding style -> SOAP
> > Element Type ->
> > Namespace URI :
> > /**problem seems to be in the part below**/
> > http://schemas.xmlsoap.org/soap/encoding/
> > Local Part: xml-soap-address-demo:address
> > /**end of problem area**/
>
> Namespace URI is "urn:xml-soap-address-demo"
> Local part is "address"
>
> > Java Type -> samples.addressbook.Address
> > Java to XML Serializer ->
> > org.apache.soap.encoding.soapenc.BeanSerializer
> > XML to Java Deserializer ->
> > org.apache.soap.encoding.soapenc.BeanSerializer
> >
> > Similary I give type mappings for the 2nd object
> (for
> > PhoneNumber)
> >
> > When I deploy the service, I get the message
> "Service
> > urn:AddressFetcher deployed."
> >
> > When I try to invoke a method of this service from
> > command line as -
> > java samples.addressbook.PutAddress
> > http://localhost:8080/soap/servlet/rpcrouter "John
> > Doe" 123 "Main Street" AnyTown SS 12345 800 555
> 1212
> >
> > I get the error message "Generated fault:
> > [Attributes={}] [faultCode=SOAP-ENV:Client]
> > [faultString=No Des
> > erializer found to deserialize a
> > 'urn:xml-soap-address-demo:address' using encod
> > ing style
> > 'http://schemas.xmlsoap.org/soap/encoding/'.]
> > [faultActorURI=/soap/ser
> > vlet/rpcrouter] [DetailEntries=] [FaultEntries=] "
> >
> >
> > When I see the service properties in List option,
> I
> > see in Type Mappings section elementType appearing
> as
> >
>
"elementType=http://schemas.xmlsoap.org/soap/encoding/:xml-soap-address-demo:address".
> > It seems to me, problem is in this part.
> >
> > Can somebody please help me with this. I'll
> appreciate
> > an early response.
> >
> > Regards,
> > Mukul
> >
> >
> >
> >
> >
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> > http://mailplus.yahoo.com
> >
>
>
> Scott Nichol
>
> Do not reply directly to this e-mail address, as it
> is filtered to
> only receive e-mail from specific mailing lists.
>
>
__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com
Re: Problem running SOAP sample in Apache SOAP 2.3.1
Posted by Scott Nichol <sn...@scottnichol.com>.
See my comment below
On 6 Feb 2003 at 22:43, Mukul wrote:
> Hello ,
> I gave incomplete information in my previous mail
> about this problem. I am specifying the parameter
> values as below.
>
> ID -> urn:AddressFetcher
>
> Scope -> Application
>
> Methods -> getAddressFromName addEntry getAllListings
> putListings
>
> Provider Type -> Java
>
> Provider Class -> samples.addressbook.AddressBook
> Static -> No
>
> Type Mappings
> -------------
> No. of mappings -> 2 (is this correct??)
>
> type mappings for the 1st object --
> Encoding style -> SOAP
> Element Type ->
> Namespace URI :
> /**problem seems to be in the part below**/
> http://schemas.xmlsoap.org/soap/encoding/
> Local Part: xml-soap-address-demo:address
> /**end of problem area**/
Namespace URI is "urn:xml-soap-address-demo"
Local part is "address"
> Java Type -> samples.addressbook.Address
> Java to XML Serializer ->
> org.apache.soap.encoding.soapenc.BeanSerializer
> XML to Java Deserializer ->
> org.apache.soap.encoding.soapenc.BeanSerializer
>
> Similary I give type mappings for the 2nd object (for
> PhoneNumber)
>
> When I deploy the service, I get the message "Service
> urn:AddressFetcher deployed."
>
> When I try to invoke a method of this service from
> command line as -
> java samples.addressbook.PutAddress
> http://localhost:8080/soap/servlet/rpcrouter "John
> Doe" 123 "Main Street" AnyTown SS 12345 800 555 1212
>
> I get the error message "Generated fault:
> [Attributes={}] [faultCode=SOAP-ENV:Client]
> [faultString=No Des
> erializer found to deserialize a
> 'urn:xml-soap-address-demo:address' using encod
> ing style
> 'http://schemas.xmlsoap.org/soap/encoding/'.]
> [faultActorURI=/soap/ser
> vlet/rpcrouter] [DetailEntries=] [FaultEntries=] "
>
>
> When I see the service properties in List option, I
> see in Type Mappings section elementType appearing as
> "elementType=http://schemas.xmlsoap.org/soap/encoding/:xml-soap-address-demo:address".
> It seems to me, problem is in this part.
>
> Can somebody please help me with this. I'll appreciate
> an early response.
>
> Regards,
> Mukul
>
>
>
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
Scott Nichol
Do not reply directly to this e-mail address, as it is filtered to
only receive e-mail from specific mailing lists.