You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by Dimuthu Leelarathne <mu...@opensource.lk> on 2004/12/06 06:44:27 UTC
Re: Deserializer error!
Hi Kibaya,
Yes you are correct. The problem is in the deserialization. The exact
point is in the <Supporting> tag. The problem is that we haven't still
implement it. So when wss4j sees the the <Supporing> tag it doesn't know
how to work with it.
Would you like to join us and implement the functionality for
<Supporing> ?
Regards,
Dimuthu
"Kibaya E." <ek...@yahoo.com> wrote:
Hi,
I think the problem is in the deserialization
process...seems axis is failing to deserialise the
instance of the soapEnvelop...dont know really but
just thinking aloud!
Any ideas will be appreciated
Kibaya
==============
Listen Port: 8081
Target Host: 127.0.0.1
Target Port: 8080
==== Request ====
POST /axis/services/SecurityTokenService HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime,
multipart/related, text/*
User-Agent: Axis/1.1
Host: 127.0.0.1
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Content-Length: 2611
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
ns1:Context="http://context.context"
xmlns:ns1="http://schemas.xmlsoap.org/ws/2004/04/trust">http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3xmlns:ns2="http://testElementNs.testElementNs"/>xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2004-12-03T05:23:33Zxmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2004-12-03T05:27:43Zhttp://schemas.xmlsoap.org/ws/2004/04/security/trust/Issuexmlns:wsse="WSConstants.WSSE_NS_OASIS_2003_06">xmlns:wsse="WSConstants.WSSE_NS_OASIS_2003_06">ellyType="PasswordDigest"
xmlns:wsse="WSConstants.WSSE_NS_OASIS_2003_06">N5s2wlHwJazdkBNjey9MMpVgDs4=xmlns:wsse="WSConstants.WSSE_NS_OASIS_2003_06">xn41UC/2Q9elnZaQGnp+GQ==xmlns:wsu="WSConstants.WSSE_NS_OASIS_2003_06">2004-12-03T05:23:33Zxmlns:wsse="WSConstants.WSSE_NS_OASIS_2003_06">xmlns:wsse="WSConstants.WSSE_NS_OASIS_2003_06">martinType="PasswordDigest"
xmlns:wsse="WSConstants.WSSE_NS_OASIS_2003_06">rityJY94EkCPN90If83hm1OucmM=xmlns:wsse="WSConstants.WSSE_NS_OASIS_2003_06">ad49SOIUshIqz0jmt8bTzQ==xmlns:wsu="WSConstants.WSSE_NS_OASIS_2003_06">2004-12-03T05:23:33Zxmlns:wsse="WSConstants.WSSE_NS_OASIS_2003_06">xmlns:wsse="WSConstants.WSSE_NS_OASIS_2003_06">alexType="PasswordDigest"
xmlns:wsse="WSConstants.WSSE_NS_OASIS_2003_06">1uhSLU1t1+b+NLNZL1ywo7gnphU=xmlns:wsse="WSConstants.WSSE_NS_OASIS_2003_06">bKg5PaAh0mPtc6cQOnwqUg==xmlns:wsu="WSConstants.WSSE_NS_OASIS_2003_06">2004-12-03T05:23:33Z
==== Response ====
HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=utf-8
Date: Fri, 03 Dec 2004 05:23:43 GMT
Server: Apache Coyote/1.0
Connection: close
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
soapenv:Server.userException
org.xml.sax.SAXException:
SimpleDeserializer encountered a child element, which
is NOT expected, in something it was trying to
deserialize.
==============
wsdl file is here too...
targetNamespace="http://localhost:8080/axis/services/SecurityTokenService">
-
-
-
-
name="exchangeRequest"/>
name="exchangeResponse"/>
-
type="impl:SecurityTokenService">
transport="http://schemas.xmlsoap.org/soap/http"/>
-
-
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://implementation.trust2.security.ws.apache.org"
use="encoded"/>
--- Dimuthu Leelarathne wrote:
> Hi Kibaya,
>
> This is a general Exception. When If you get an
> error from that line ( SOAPEnvelope response =
> call.invoke(env) as you have said), the error can be
> in the server-side or the client-side. The
> information you have given is not enough for me to
> determine whether the error acutally happens in the
> client side or the server side.
>
> So when I am faced with the same problem, here is
> what I usally do.
>
> 1) I first set up the TCP monitor and re-send the
> SOAP request.
> 2) Then I carefully examine the contents in the TCP
> monitor, and the server output to determine where
> the error is. If the server returns an error, bingo
> !!! The error is in the STS. Then we have to fix it.
>
> If not i.e. if server returns the correct looking
> "Soap response" do the following,
>
> 3) If I get a "correct looking" response from the
> server, (you can observe in from TCP monitor), the I
> copy the response from the TCP-mon and save it as a
> "response.xml" file.
>
> 4) Then I open the "response.xml" file using
> Internet Explorer.
>
> 5) Check whether the message is opened correctly,
> i.e. whether Internet Explorer gives an error.
>
> Kibaya, let me know the results of these tests you
> perform. We can help you.
>
> Cheers,
> Dimuthu.
>
>
>
>
>
>
>
> You are always welcome.
>
> Cheers,
> Dimuthu.
>
>
> "Kibaya E." wrote:
> Dear colleagues,
> Sorry to bother you, but iam trying to redeploy the
> securitytokenservice example code from the apache
> site(where you were chief contributers) with
> virtually
> very minimal modification but iam getting this
> SimpleDeserialiser error....any help...
> Below is the output file thrown from axis.
>
>
> AxisFault
> faultCode:
>
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> faultSubcode:
> faultString: org.xml.sax.SAXException:
> SimpleDeserializer encountered a child element,
> which
> is NOT expected, in something it was trying to
> deserialize.
> faultActor:
> faultNode:
> faultDetail:
> {http://xml.apache.org/axis/}stackTrace: AxisFault
> faultCode:
>
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> faultSubcode:
> faultString: org.xml.sax.SAXException:
> SimpleDeserializer encountered a child element,
> which
> is NOT expected, in something it was trying to
> deserialize.
> faultActor:
> faultNode:
> faultDetail:
>
> org.xml.sax.SAXException: SimpleDeserializer
> encountered a child element, which is NOT expected,
> in
> something it was trying to deserialize.
> at
>
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:260)
> at
>
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:169)
> at
>
org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1015)
> at
>
org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
> at
>
org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1456)
> at
>
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1260)
> at
>
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
> at
>
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
> at javax.xml.parsers.SAXParser.parse(Unknown Source)
> at
>
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:242)
> at
>
org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
> at
>
org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
> at
>
org.apache.axis.client.Call.invokeEngine(Call.java:2583)
> at
> org.apache.axis.client.Call.invoke(Call.java:2553)
> at
> org.apache.axis.client.Call.invoke(Call.java:1753)
> at
>
SecurityTokenServiceClient.main(SecurityTokenServiceClient.java:92)
>
>
> org.xml.sax.SAXException: SimpleDeserializer
> encountered a child element, which is NOT expected,
> in
> something it was trying to deserialize.
> at
>
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:260)
> at
>
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:169)
> at
>
org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1015)
> at
>
org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
> at
>
org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1456)
> at
>
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1260)
> at
>
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
> at
>
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
> at javax.xml.parsers.SAXParser.parse(Unknown Source)
> at
>
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:242)
> at
>
org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
> at
>
org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
> at
>
org.apache.axis.client.Call.invokeEngine(Call.java:2583)
> at
> org.apache.axis.client.Call.invoke(Call.java:2553)
> at
> org.apache.axis.client.Call.invoke(Call.java:1753)
> at
>
SecurityTokenServiceClient.main(SecurityTokenServiceClient.java:92)
> Exception in thread "main"
> -----------------------------------------------
> The line from which it picks up the error is here by
> attached
> // This is where we actually invoke the service,
> sending the request we've constructed
> // Assuming we did everything right, it will
> return to us a SOAP envelope containing the response
> SOAPEnvelope response = call.invoke(env);
>
> System.out.println("\n============= Response
> from service==============");
>
> XMLUtils.PrettyElementToStream(response.getAsDOM(),
> System.out);
>
> // Find the
> element the SOAP body should contain
> SOAPBodyElement responseBody =
> response.getBodyByName(TrustConstants.WST_NS,
> TrustConstants.RESPONSE_TAG);
>
> // Construct a Java object from the XML
> RequestSecurityTokenResponse tokenResponse =
> new
>
RequestSecurityTokenResponse(responseBody.getAsDOM());
>
> System.out.println("\n-------
> RequestSecurityTokenResponse object from
> service------------- \n" + tokenResponse);
> }
> }
>
> Thanks
> Kibaya
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
>
=== message truncated ===
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo
---------------------------------
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
--0-1275518174-1102311049=:87595
Content-Type: text/html; charset=us-ascii
<DIV>Hi Kibaya,</DIV>
<DIV> </DIV>
<DIV>Yes you are correct. The problem is in the deserialization. The
exact point is in the <Supporting> tag. The problem is that we
haven't still implement it. So when wss4j sees the the
<Supporing> tag it doesn't know how to work with it. </DIV>
<DIV> </DIV>
<DIV>Would you like to join us and implement the functionality for
<Supporing> ?</DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV>Dimuthu<BR><BR><B><I>"Kibaya E." <ekibaya@yahoo.com></I></B>
wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px;
BORDER-LEFT: #1010ff 2px solid">Hi,<BR>I think the problem is in the
deserialization<BR>process...seems axis is failing to deserialise
the<BR>instance of the soapEnvelop...dont know really but<BR>just thinking
aloud!<BR>Any ideas will be
appreciated<BR><BR>Kibaya<BR><BR>==============<BR>Listen Port:
8081<BR>Target Host: 127.0.0.1<BR>Target Port:
8080<BR>==== Request ====<BR>POST /axis/services/SecurityTokenService
HTTP/1.0<BR>Content-Type: text/xml; charset=utf-8<BR>Accept:
application/soap+xml, application/dime,<BR>multipart/related,
text/*<BR>User-Agent:
Axis/1.1<BR>Host: 127.0.0.1<BR>Cache-Control: no-cache<BR>Pragma:
no-cache<BR>SOAPAction: ""<BR>Content-Length: 2611<BR><BR><?xml version="1.0"
encoding="UTF-8"?><BR><?xml:namespace prefix = soapenv
/><soapenv:Envelope<br>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"<BR>xmlns:xsd="http://www.w3.org/2001/XMLSchema"<BR>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><BR><soapenv:Body><?xml:namespace
prefix = ns1
/><ns1:RequestSecurityToken<br>ns1:Context="http://context.context"<BR>xmlns:ns1="http://schemas.xmlsoap.org/ws/2004/04/trust"><ns1:TokenType>http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3</ns1:TokenType><ns2:TestElement<br>xmlns:ns2="http://testElementNs.testElementNs"/><ns1:Lifetime<br>xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><?xml:namespace
prefix = wsu
/><wsu:Created<br>xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2004-12-03T05:23:33Z</wsu:Created<br><wsu:Expires<br>xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2004-12-03T05:27:43Z</wsu:Expires<br></ns1:Lifetime<br><ns1:RequestType>http://schemas.xmlsoap.org/ws/2004/04/security/trust/Issue</ns1:RequestType><ns1:Base><?xml:namespace
prefix = wsse
/><wsse:UsernameToken<br>xmlns:wsse="WSConstants.WSSE_NS_OASIS_2003_06"><wsse:Username<br>xmlns:wsse="WSConstants.WSSE_NS_OASIS_2003_06">elly</wsse:Username<br><wsse:Password<br>Type="PasswordDigest"<BR>xmlns:wsse="WSConstants.WSSE_NS_OASIS_2003_06">N5s2wlHwJazdkBNjey9MMpVgDs4=</wsse:Password<br><wsse:Nonce<br>xmlns:wsse="WSConstants.WSSE_NS_OASIS_2003_06">xn41UC/2Q9elnZaQGnp+GQ==</wsse:Nonce<br><wsu:Created<br>xmlns:wsu="WSConstants.WSSE_NS_OASIS_2003_06">2004-12-03T05:23:33Z</wsu:Created<br></wsse:UsernameToken<br></ns1:Base><ns1:Supporting><wsse:UsernameToken<br>xmlns:wsse="WSConstants.WSSE_NS_OASIS_2003_06"><wsse:Username<br>xmlns:wsse="WSConstants.WSSE_NS_OASIS_2003_06">martin</wsse:Username<br><wsse:Password<br>Type="PasswordDigest"<BR>xmlns:wsse="WSConstants.WSSE_NS_OASIS_2003_06">rityJY94EkCPN90If83hm1OucmM=</wsse:Password<br><wsse:Nonce<br>xmlns:wsse="WSConstants.WSSE_NS_OASIS_2003_06">ad49SOIUshIqz0jmt8bTzQ==</wsse:Nonce<br><wsu:Created<br>xmlns:
wsu="WSConstants.WSSE_NS_OASIS_2003_06">2004-12-03T05:23:33Z</wsu:Created<br></wsse:UsernameToken<br><wsse:UsernameToken<br>xmlns:wsse="WSConstants.WSSE_NS_OASIS_2003_06"><wsse:Username<br>xmlns:wsse="WSConstants.WSSE_NS_OASIS_2003_06">alex</wsse:Username<br><wsse:Password<br>Type="PasswordDigest"<BR>xmlns:wsse="WSConstants.WSSE_NS_OASIS_2003_06">1uhSLU1t1+b+NLNZL1ywo7gnphU=</wsse:Password<br><wsse:Nonce<br>xmlns:wsse="WSConstants.WSSE_NS_OASIS_2003_06">bKg5PaAh0mPtc6cQOnwqUg==</wsse:Nonce<br><wsu:Created<br>xmlns:wsu="WSConstants.WSSE_NS_OASIS_2003_06">2004-12-03T05:23:33Z</wsu:Created<br></wsse:UsernameToken<br></ns1:Supporting></ns1:RequestSecurityToken<br><BR></soapenv:Body><BR></soapenv:Envelope<br><BR><BR>====
Response ====<BR>HTTP/1.1 500 Internal Server Error<BR>Content-Type:
text/xml; charset=utf-8<BR>Date: Fri, 03 Dec 2004 05:23:43 GMT<BR>Server:
Apache Coyote/1.0<BR>Connection: close<BR><BR><?xml version="1.0"
encoding="UTF-8"?><BR><soapenv:Envelope<br>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"<BR>xmlns:xsd="http://www.w3.org/2001/XMLSchema"<BR>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><BR><soapenv:Body><BR><soapenv:Fault><BR><FAULTCODE>soapenv:Server.userException</FAULTCODE><BR><FAULTSTRING>org.xml.sax.SAXException:<BR>SimpleDeserializer
encountered a child element, which<BR>is NOT expected, in something it
was trying to<BR>deserialize.</FAULTSTRING><BR><DETAIL
/><BR></soapenv:Fault><BR></soapenv:Body><BR></soapenv:Envelope<br><BR>==============<BR>wsdl
file is here
too...<BR><wsdl:definitions<br>targetNamespace="http://localhost:8080/axis/services/SecurityTokenService"><BR>-<BR><?xml:namespace
prefix = wsdl /><wsdl:message name="exchangeRequest"><BR><wsdl:part
type="xsd:anyType"
name="in0"></wsdl:part><BR></wsdl:message><BR>-<BR><wsdl:message
name="exchangeResponse"><BR><wsdl:part type="xsd:anyType"
name="exchangeReturn"></wsdl:part><BR></wsdl:message><BR>-<BR><wsdl:portType
name="SecurityTokenService"><BR>-<BR><wsdl:operation
name="exchange" parameterOrder="in0"><BR><wsdl:input
message="impl:exchangeRequest"
<br>name="exchangeRequest"/><BR><wsdl:output
message="impl:exchangeResponse"
<br>name="exchangeResponse"/><BR></wsdl:operation><BR></wsdl:portType><BR>-<BR><wsdl:binding
name="SecurityTokenServiceSoapBinding"
<br>type="impl:SecurityTokenService"><BR><wsdlsoap:binding
<br>transport="http://schemas.xmlsoap.org/soap/http"/><BR>-<BR><wsdl:operation
name="exchange"><BR><?xml:namespace prefix = wsdlsoap
/><wsdlsoap:operation soapAction=""></wsdlsoap:operation><BR>-<BR><wsdl:input
name="exchangeRequest"><BR><wsdlsoap:body<br>encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"<BR>namespace="http://implementation.trust2.security.ws.apache.org"<BR>use="encoded"/><BR></wsdl:input><BR>---
Dimuthu Leelarathne <MU...@YAHOO.COM>wrote:<BR><BR>> Hi
Kibaya,<BR>> <BR>> This is a general Exception. When If you get
an<BR>> error from that line ( SOAPEnvelope response =<BR>>
call.invoke(env) as you have said), the error can be<BR>> in the
server-side or the client-side. The<BR>> information you have given is not
enough for me to<BR>> determine whether the error acutally happens in
the<BR>> client side or the server side.<BR>> <BR>> So when I
am faced with the same problem, here is<BR>> what I usally
do.<BR>> <BR>> 1) I first set up the TCP monitor and re-send
the<BR>>
SOAP request.<BR>> 2) Then I carefully examine the contents in the
TCP<BR>> monitor, and the server output to determine where<BR>> the
error is. If the server returns an error, bingo<BR>> !!! The error
is in the STS. Then we have to fix it.<BR>> <BR>> If not i.e. if
server returns the correct looking<BR>> "Soap response" do the
following,<BR>> <BR>> 3) If I get a "correct looking" response from
the<BR>> server, (you can observe in from TCP monitor), the
I<BR>> copy the response from the TCP-mon and save it as a<BR>>
"response.xml" file. <BR>> <BR>> 4) Then I open the "response.xml" file
using<BR>> Internet Explorer.<BR>> <BR>> 5) Check whether the
message is opened correctly,<BR>> i.e. whether Internet Explorer
gives an error.<BR>> <BR>> Kibaya, let me know the results of these
tests you<BR>> perform. We can help you.<BR>> <BR>>
Cheers,<BR>> Dimuthu.<BR>> <BR>> <BR>> <BR>> <BR>> <BR>>
<BR>> <BR>> You are always welcome.<BR>> <BR>> Cheers,<BR>>
Dimuthu.<BR>> <BR>> <BR>> "Kibaya E."
<EK...@YAHOO.COM>wrote:<BR>> Dear colleagues,<BR>> Sorry to bother
you, but iam trying
to redeploy the<BR>> securitytokenservice example code from the
apache<BR>> site(where you were chief contributers) with<BR>>
virtually<BR>> very minimal modification but iam getting this<BR>>
SimpleDeserialiser error....any help...<BR>> Below is the output
file thrown from axis.<BR>> <BR>> <BR>> AxisFault<BR>>
faultCode:<BR>><BR>{http://schemas.xmlsoap.org/soap/envelope/}Server.userException<BR>>
faultSubcode: <BR>> faultString: org.xml.sax.SAXException:<BR>>
SimpleDeserializer encountered a child element,<BR>> which<BR>> is
NOT expected, in something it was trying to<BR>>
deserialize.<BR>> faultActor: <BR>> faultNode: <BR>> faultDetail:
<BR>>
{http://xml.apache.org/axis/}stackTrace: AxisFault<BR>>
faultCode:<BR>><BR>{http://schemas.xmlsoap.org/soap/envelope/}Server.userException<BR>>
faultSubcode: <BR>> faultString: org.xml.sax.SAXException:<BR>>
SimpleDeserializer encountered a child element,<BR>> which<BR>> is
NOT expected, in something it was trying to<BR>>
deserialize.<BR>> faultActor: <BR>> faultNode: <BR>> faultDetail:
<BR>>
<BR>> org.xml.sax.SAXException:
SimpleDeserializer<BR>> encountered a child element, which is NOT
expected,<BR>> in<BR>> something it was trying to
deserialize.<BR>>
at<BR>><BR>org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:260)<BR>>
at<BR>><BR>org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:169)<BR>>
at<BR>><BR>org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1015)<BR>>
at<BR>><BR>org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)<BR>>
at<BR>><BR>org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1456)<BR>>
at<BR>><BR>org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1260)<BR>>
at<BR>><BR>org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)<BR>>
at<BR>><BR>org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)<BR>>
at
javax.xml.parsers.SAXParser.parse(Unknown Source)<BR>>
at<BR>><BR>org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:242)<BR>>
at<BR>><BR>org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)<BR>>
at<BR>><BR>org.apache.axis.Message.getSOAPEnvelope(Message.java:376)<BR>>
at<BR>><BR>org.apache.axis.client.Call.invokeEngine(Call.java:2583)<BR>>
at<BR>> org.apache.axis.client.Call.invoke(Call.java:2553)<BR>>
at<BR>> org.apache.axis.client.Call.invoke(Call.java:1753)<BR>>
at<BR>><BR>SecurityTokenServiceClient.main(SecurityTokenServiceClient.java:92)<BR>>
<BR>> <BR>> org.xml.sax.SAXException: SimpleDeserializer<BR>>
encountered a child element, which is NOT expected,<BR>> in<BR>>
something it was trying to deserialize.<BR>>
at<BR>><BR>org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:260)<BR>>
at<BR>><BR>org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:169)<BR>>
at<BR>><BR>org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1015)<BR>>
at<BR>><BR>org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)<BR>>
at<BR>><BR>org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1456)<BR>>
at<BR>><BR>org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1260)<BR>>
at<BR>><BR>org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)<BR>>
at<BR>><BR>org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)<BR>>
at javax.xml.parsers.SAXParser.parse(Unknown Source)<BR>>
at<BR>><BR>org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:242)<BR>>
at<BR>><BR>org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)<BR>>
at<BR>><BR>org.apache.axis.Message.getSOAPEnvelope(Message.java:376)<BR>>
at<BR>><BR>org.apache.axis.client.Call.invokeEngine(Call.java:2583)<BR>>
at<BR>>
org.apache.axis.client.Call.invoke(Call.java:2553)<BR>> at<BR>>
org.apache.axis.client.Call.invoke(Call.java:1753)<BR>>
at<BR>><BR>SecurityTokenServiceClient.main(SecurityTokenServiceClient.java:92)<BR>>
Exception in thread
"main" <BR>> -----------------------------------------------<BR>>
The line from which it picks up the error is here by<BR>>
attached<BR>> // This is where we actually invoke the service,<BR>>
sending
the request we've constructed<BR>> // Assuming we did everything
right, it will<BR>> return to us a SOAP envelope containing the
response<BR>> SOAPEnvelope response = call.invoke(env);<BR>> <BR>>
System.out.println("\n============= Response<BR>> from
service==============");<BR>> <BR>>
XMLUtils.PrettyElementToStream(response.getAsDOM(),<BR>>
System.out);<BR>> <BR>> // Find
the <BR>> element the SOAP body should contain<BR>>
SOAPBodyElement responseBody =<BR>>
response.getBodyByName(TrustConstants.WST_NS,<BR>>
TrustConstants.RESPONSE_TAG);<BR>> <BR>> // Construct a
Java object from the XML<BR>> RequestSecurityTokenResponse
tokenResponse =<BR>>
new<BR>><BR>RequestSecurityTokenResponse(responseBody.getAsDOM());<BR>>
<BR>> System.out.println("\n-------<BR>>
RequestSecurityTokenResponse object from<BR>> service------------- \n"
+ tokenResponse);<BR>> }<BR>> }<BR>> <BR>> Thanks<BR>>
Kibaya<BR>> <BR>> <BR>>
__________________________________________________<BR>> Do You
Yahoo!?<BR>> Tired of spam? Yahoo! Mail
has the best spam<BR>> protection around <BR>> <BR>=== message
truncated ===<BR><BR><BR><BR><BR>__________________________________ <BR>Do
you
Yahoo!? <BR>Take Yahoo! Mail with you! Get it on your mobile phone.
<BR>http://mobile.yahoo.com/maildemo
<BR></BLOCKQUOTE></wsdlsoap:body<br></wsdl:operation></wsdlsoap:binding></wsdl:binding></wsdl:output></wsdl:input></wsdl:definitions<br></ns2:TestElement<br><p>
<hr size=1>Do you Yahoo!?<br>
<a
href="http://us.rd.yahoo.com/mail_us/taglines/virus/*http://promotions.yahoo.com/new_mail/static/protection.html">Yahoo!
Mail</a> - Helps protect you from nasty viruses.
--0-1275518174-1102311049=:87595--
--
Lanka Software Foundation http://www.opensource.lk