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 Chanan Braunstein <CB...@knovel.com> on 2000/09/12 19:48:43 UTC

GetAddress

Hello,
    I got GetAllListings to work, but when I try to run GetAddress I got the
following error:
    Caught SOAPException (SOAP-ENV:Client): No mapping found for
'urn:xml-soap-address-demo:x:address' using encoding style
'http://schemas.xmlsoap.org/soap/encoding/'.

    I looked in the SOAP admin and here is my listing from Type Mapping:
    [TypeMapping
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/,elementType=urn:xml-
soap-address-demo:x:address,javaType=samples.addressbook.Address,java2XMLCla
ssName=org.apache.soap.encoding.soapenc.BeanSerializer,xml2JavaClassName=org
.apache.soap.encoding.soapenc.BeanSerializer]
[TypeMapping
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/,elementType=urn:xml-
soap-address-demo:x:phone,javaType=samples.addressbook.PhoneNumber,java2XMLC
lassName=org.apache.soap.encoding.soapenc.BeanSerializer,xml2JavaClassName=o
rg.apache.soap.encoding.soapenc.BeanSerializer]

    To me, the novice, it seems correct. What am I doing wrong?
Thanks,

Chanan Braunstein
http://knovel.com



Re: GetAddress

Posted by Frederic POIROT <po...@yahoo.com>.
Hello !
I get the same problem. But if you look in the source code the "x:" is added
when formatting the xml document (look in DeploymentDescriptor.java).
When deploying, on the local part field simply put "phone" or "address" not
"x:phone" or "x:address".
Be sure after to have the correct classpath when running the client. Mine is
set
CLASSPATH=e:\xerces-1_2_0\xerces.jar;e:\soap-2_0;e:\soap-2_0\lib\soap.jar;c:
\jdk1.3\jre\lib\rt.jar;

Don't forget to put the xerces.jar first.
and enjoy !
Regards
Fred


----- Original Message -----
From: "Chanan Braunstein" <CB...@knovel.com>
To: <so...@xml.apache.org>
Sent: Tuesday, September 12, 2000 10:48
Subject: GetAddress


> Hello,
>     I got GetAllListings to work, but when I try to run GetAddress I got
the
> following error:
>     Caught SOAPException (SOAP-ENV:Client): No mapping found for
> 'urn:xml-soap-address-demo:x:address' using encoding style
> 'http://schemas.xmlsoap.org/soap/encoding/'.
>
>     I looked in the SOAP admin and here is my listing from Type Mapping:
>     [TypeMapping
>
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/,elementType=urn:xml-
>
soap-address-demo:x:address,javaType=samples.addressbook.Address,java2XMLCla
>
ssName=org.apache.soap.encoding.soapenc.BeanSerializer,xml2JavaClassName=org
> .apache.soap.encoding.soapenc.BeanSerializer]
> [TypeMapping
>
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/,elementType=urn:xml-
>
soap-address-demo:x:phone,javaType=samples.addressbook.PhoneNumber,java2XMLC
>
lassName=org.apache.soap.encoding.soapenc.BeanSerializer,xml2JavaClassName=o
> rg.apache.soap.encoding.soapenc.BeanSerializer]
>
>     To me, the novice, it seems correct. What am I doing wrong?
> Thanks,
>
> Chanan Braunstein
> http://knovel.com
>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


Re: GetAddress

Posted by Frederic POIROT <po...@yahoo.com>.
Hello !
I get the same problem. But if you look in the source code the "x:" is added
when formatting the xml document (look in DeploymentDescriptor.java).
When deploying, on the local part field simply put "phone" or "address" not
"x:phone" or "x:address".
Be sure after to have the correct classpath when running the client. Mine is
set
CLASSPATH=e:\xerces-1_2_0\xerces.jar;e:\soap-2_0;e:\soap-2_0\lib\soap.jar;c:
\jdk1.3\jre\lib\rt.jar;

Don't forget to put the xerces.jar first.
and enjoy !
Regards
Fred


----- Original Message -----
From: "Chanan Braunstein" <CB...@knovel.com>
To: <so...@xml.apache.org>
Sent: Tuesday, September 12, 2000 10:48
Subject: GetAddress


> Hello,
>     I got GetAllListings to work, but when I try to run GetAddress I got
the
> following error:
>     Caught SOAPException (SOAP-ENV:Client): No mapping found for
> 'urn:xml-soap-address-demo:x:address' using encoding style
> 'http://schemas.xmlsoap.org/soap/encoding/'.
>
>     I looked in the SOAP admin and here is my listing from Type Mapping:
>     [TypeMapping
>
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/,elementType=urn:xml-
>
soap-address-demo:x:address,javaType=samples.addressbook.Address,java2XMLCla
>
ssName=org.apache.soap.encoding.soapenc.BeanSerializer,xml2JavaClassName=org
> .apache.soap.encoding.soapenc.BeanSerializer]
> [TypeMapping
>
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/,elementType=urn:xml-
>
soap-address-demo:x:phone,javaType=samples.addressbook.PhoneNumber,java2XMLC
>
lassName=org.apache.soap.encoding.soapenc.BeanSerializer,xml2JavaClassName=o
> rg.apache.soap.encoding.soapenc.BeanSerializer]
>
>     To me, the novice, it seems correct. What am I doing wrong?
> Thanks,
>
> Chanan Braunstein
> http://knovel.com
>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com