You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Monica Kachru <mk...@excite.com> on 2000/10/30 00:56:09 UTC

SOAP Response XML - java newbie

Hello -

I have a soap client (java program) that can talk to the soap services
(using tomcat/jdk1.2).
I can get to the respective params from the soap response.

However, I am trying to figure out how can I get to the raw XML that is
being returned in the SOAP response "inside" my java client code.

I also looked at the TcpTunnel/TcpTunnelGui code - but it goes to the socket
directly.

I guess I can use some methods of the Response or the RPCMessage classes -
but haven't figured it out yet. 

Any help will be appreciated ..

thanks in advance !













_______________________________________________________
Say Bye to Slow Internet!
http://www.home.com/xinbox/signup.html


XML in the FaultString

Posted by chuck clark <cc...@ziclix.com>.
well this is a probelm which goes back to the issues we discussed last week
regarding sending raw XML in the SOAP request
encoding the message in Base64 or sending it using the literalxml encoding
works but is an annoyance...now i've gotten to something i can't get around...

(i think monica kachru was asking aboug this over the weekend....there is your
answer...you can't do it in a raw string right now)

on the remote side i have an exception get thrown...the detail message has XML
in it (basically my application validates the XML i send into it...so i Base64
the request)...but if someone forgets to end a <title> tag my validator throws
an exception which says "expecting </title> tag"....i have the source to the
validator so i could change the error message but it is written by a different
team and i shouldn't have to go in and bastardize their very nice error
messages just because of SOAP

ideas on how to get around this one?

chuck


XML in the FaultString

Posted by chuck clark <cc...@ziclix.com>.
well this is a probelm which goes back to the issues we discussed last week
regarding sending raw XML in the SOAP request
encoding the message in Base64 or sending it using the literalxml encoding
works but is an annoyance...now i've gotten to something i can't get around...

(i think monica kachru was asking aboug this over the weekend....there is your
answer...you can't do it in a raw string right now)

on the remote side i have an exception get thrown...the detail message has XML
in it (basically my application validates the XML i send into it...so i Base64
the request)...but if someone forgets to end a <title> tag my validator throws
an exception which says "expecting </title> tag"....i have the source to the
validator so i could change the error message but it is written by a different
team and i shouldn't have to go in and bastardize their very nice error
messages just because of SOAP

ideas on how to get around this one?

chuck


Can't find a Serializer

Posted by Ross Daws <ro...@hubbub.com.au>.
Hi!

I've hit a Soap Exception that I don't know how to fix...

This is the exception:

> TomServer>java hubbub.at.SOAPTest http://localhost/soap/servlet/rpcrouter
>
> Caught SOAPException (SOAP-ENV:Client): No Serializer found to serialize a
'hubbub.at.SMSRequest' using
> encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.

This is my first attempt at trying to pass my own java class over a soap
call (hubbub.at.SMSRequest), and I'm a bit lost as to what the problem could
be ...

I have registered the class with the SoapMappingRegistry, like this:

	    smr.mapTypes(Constants.NS_URI_SOAP_ENC,
	                 new QName("urn:xml-soap-at-sms-server", "request"),
	                 SMSRequest.class, beanSer, beanSer);

and the service is deployed like this:

[TypeMapping
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/,elementType=urn:xml-
soap-at-sms-server:request,javaType=hubbub.at.SMSRequest,java2XMLClassName=o
rg.apache.soap.encoding.soapenc.BeanSerializer,xml2JavaClassName=org.apache.
soap.encoding.soapenc.BeanSerializer]

Can anyone help me figure out what's going wrong?

Thanks,

Ross


Can't find a Serializer

Posted by Ross Daws <ro...@hubbub.com.au>.
Hi!

I've hit a Soap Exception that I don't know how to fix...

This is the exception:

> TomServer>java hubbub.at.SOAPTest http://localhost/soap/servlet/rpcrouter
>
> Caught SOAPException (SOAP-ENV:Client): No Serializer found to serialize a
'hubbub.at.SMSRequest' using
> encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.

This is my first attempt at trying to pass my own java class over a soap
call (hubbub.at.SMSRequest), and I'm a bit lost as to what the problem could
be ...

I have registered the class with the SoapMappingRegistry, like this:

	    smr.mapTypes(Constants.NS_URI_SOAP_ENC,
	                 new QName("urn:xml-soap-at-sms-server", "request"),
	                 SMSRequest.class, beanSer, beanSer);

and the service is deployed like this:

[TypeMapping
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/,elementType=urn:xml-
soap-at-sms-server:request,javaType=hubbub.at.SMSRequest,java2XMLClassName=o
rg.apache.soap.encoding.soapenc.BeanSerializer,xml2JavaClassName=org.apache.
soap.encoding.soapenc.BeanSerializer]

Can anyone help me figure out what's going wrong?

Thanks,

Ross