SAXException: SimpleDeserializer encountered a child element

2008-04-29 Thread Erik Wheeler
Hi all:

I am getting the following error after receiving a response:

org.xml.sax.SAXException: SimpleDeserializer encountered a child
element, which is NOT expected, in something it was trying to
deserialize.

Can anyone suggest how to troubleshoot this?

I have been unable to find a solution.

Thanks,

Erik

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: WSS4J/Axis - SAXException: SimpleDeserializer encountered a child element, which is NOT expected

2007-02-13 Thread adrian.p.smith
Any ideas anyone?

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 12 February 2007 11:08
To: axis-user@ws.apache.org
Subject: WSS4J/Axis - SAXException: SimpleDeserializer encountered a
child element, which is NOT expected



I have an Axis client that can call an unsecure service (Spring-ws)
without any problems. 

When I introduce a WSS4J Password Token, the service receives the
request and validates it OK and then returns a valid response (the same
response as when un-secured), but the client fails to read it with the
following error:

 [java] Exception in thread "main" AxisFault 
 [java]  faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
<http://schemas.xmlsoap.org/soap/envelope/}Server.userException>  
 [java]  faultSubcode: 
 [java]  faultString: org.xml.sax.SAXException: SimpleDeserializer
encountered a child element, which is NOT expected, in something it was
trying

to deserialize. 
 [java]  faultActor: 
 [java]  faultNode: 
 [java]  faultDetail: 
 [java]
{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException
<http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException> :
SimpleDeserializer encountered a child element, which is NOT expecte

d, in something it was trying to deserialize. 
 [java] at
org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeser
ializer.java:145) 
 [java] at
org.apache.axis.encoding.DeserializationContext.startElement(Deserializa
tionContext.java:1035) 
 [java] at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:
165) 
 [java] at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.j
ava:1141) 
 [java] at
org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236) 
 [java] at
org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) 
 [java] at org.apache.axis.client.Call.invoke(Call.java:2467) 
 [java] at org.apache.axis.client.Call.invoke(Call.java:2366) 
 [java] at org.apache.axis.client.Call.invoke(Call.java:1812) 
 [java] at
org.springframework.ws.samples.sms.client.axis1.SessionMessagingSoapBind
ingStub.getMessageDeliveryStatuses(Unknown Source)

 [java] at
org.springframework.ws.samples.sms.client.axis1.Main.main(Unknown
Source) 
 [java] 
 [java] {http://xml.apache.org/axis/}hostname:BTG197298
<http://xml.apache.org/axis/}hostname:BTG197298>  

I have found some similar posts in Google, but never a resolution. 

Please can anyone help out? 

TIA 



WSS4J/Axis - SAXException: SimpleDeserializer encountered a child element, which is NOT expected

2007-02-12 Thread adrian.p.smith
I have an Axis client that can call an unsecure service (Spring-ws)
without any problems.

When I introduce a WSS4J Password Token, the service receives the
request and validates it OK and then returns a valid response (the same
response as when un-secured), but the client fails to read it with the
following error:

 [java] Exception in thread "main" AxisFault
 [java]  faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 [java]  faultSubcode:
 [java]  faultString: org.xml.sax.SAXException: SimpleDeserializer
encountered a child element, which is NOT expected, in something it was
trying
to deserialize.
 [java]  faultActor:
 [java]  faultNode:
 [java]  faultDetail:
 [java]
{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException:
SimpleDeserializer encountered a child element, which is NOT expecte
d, in something it was trying to deserialize.
 [java] at
org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeser
ializer.java:145)
 [java] at
org.apache.axis.encoding.DeserializationContext.startElement(Deserializa
tionContext.java:1035)
 [java] at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:
165)
 [java] at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.j
ava:1141)
 [java] at
org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
 [java] at
org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
 [java] at org.apache.axis.client.Call.invoke(Call.java:2467)
 [java] at org.apache.axis.client.Call.invoke(Call.java:2366)
 [java] at org.apache.axis.client.Call.invoke(Call.java:1812)
 [java] at
org.springframework.ws.samples.sms.client.axis1.SessionMessagingSoapBind
ingStub.getMessageDeliveryStatuses(Unknown Source)
 [java] at
org.springframework.ws.samples.sms.client.axis1.Main.main(Unknown
Source)
 [java]
 [java] {http://xml.apache.org/axis/}hostname:BTG197298

I have found some similar posts in Google, but never a resolution.

Please can anyone help out?

TIA


Re: (newbie) SAXException: SimpleDeserializer encountered a child element

2005-09-26 Thread Filippo Diotalevi
Hi, I'm still investigating and debugging on this
problem. I've discovered some facts that maybe can be
useful to understand the problem (thank you for
listening :-))

First of all, the error is server-side. 

The server receives a soap body like this:

http://impl.ws.service.rc.nec";>
http://stato.ws.model.rc.nec";>
String
String

http://stato.ws.model.rc.nec";>1001


Then the DeserializationContext starts processing the
body.
The problem seems to be about the topHandler
associated with the  element. In fact it is
a SimpleDeserializer, and when in the
DeserializationContext is called
SimpleDeserializer.startElement it raises an exception
(SimpleDerializer does not support this operation).

The topHandler associated with
 is a RPCHandler

Logs:

eu_rc] DEBUG [http-8080-Processor24]
DeserializerImpl.onStartElement(431) | Deser got type
{http://www.w3.org/2001/XMLSchema}string
[eu_rc] DEBUG [http-8080-Processor24] NSStack.push(85)
| NSPush (32)
[eu_rc] DEBUG [http-8080-Processor24]
DeserializationContext.startElement(1067) | Exit:
DeserializationContext::startElement()
[eu_rc] DEBUG [http-8080-Processor24]
DeserializationContext.startElement(1003) | Enter:
DeserializationContext::startElement(, username)
[eu_rc] DEBUG [http-8080-Processor24]
ProjectResourceBundle.handleGetObject(72) |
org.apache.axis.i18n.resource::handleGetObject(cantHandle00)
[eu_rc] DEBUG [http-8080-Processor24]
ProjectResourceBundle.handleGetObject(72) |
org.apache.axis.i18n.resource::handleGetObject(toAxisFault00)
[eu_rc] DEBUG [http-8080-Processor24]
enterprise.invoke(321) | Mapping Exception to
AxisFault
org.xml.sax.SAXException: SimpleDeserializer
encountered a child element, which is NOT expected, in
something it was trying to deserialize.
at
org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
at
org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1140)
at
org.apache.axis.message.RPCElement.deserialize(RPCElement.java:345)
at
org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
at
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:148)
at
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:319)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at
org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at
org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453)
at
org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
at
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
at javax.s




--- Filippo Diotalevi <[EMAIL PROTECTED]> ha
scritto: 

> Hi, I tried also adding
> elementFormDefault="qualified"
> to the second schema but it does not work...
> 
> The think is pretty weird because sometimes (well,
> just the first time tomorrow) it works, but most of
> the times I have the usual exception:
> org.xml.sax.SAXException: SimpleDeserializer
> encountered a child element, which is NOT expected,
> in
> something it was trying to deserialize
> 
> filippo
> 
> --- Anne Thomas Manes <[EMAIL PROTECTED]> ha
> scritto: 
> 
> > The WSDL looks fine to me, and your input message
> > looks like it conforms to
> > the WSDL.
> > Nonetheless, I suggest you add
> > elementFormDefault="qualified" to the second
> > schema (http://ws.model.rc.nec).
> > 
> > Anne
> 







___ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it


Re: (newbie) SAXException: SimpleDeserializer encountered a child element

2005-09-26 Thread Filippo Diotalevi
Hi, I tried also adding elementFormDefault="qualified"
to the second schema but it does not work...

The think is pretty weird because sometimes (well,
just the first time tomorrow) it works, but most of
the times I have the usual exception:
org.xml.sax.SAXException: SimpleDeserializer
encountered a child element, which is NOT expected, in
something it was trying to deserialize

filippo

--- Anne Thomas Manes <[EMAIL PROTECTED]> ha scritto: 

> The WSDL looks fine to me, and your input message
> looks like it conforms to
> the WSDL.
> Nonetheless, I suggest you add
> elementFormDefault="qualified" to the second
> schema (http://ws.model.rc.nec).
> 
> Anne







___ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it


Re: (newbie) SAXException: SimpleDeserializer encountered a child element

2005-09-24 Thread Anne Thomas Manes
The WSDL looks fine to me, and your input message looks like it conforms to the WSDL.
Nonetheless, I suggest you add elementFormDefault="qualified" to the second schema (http://ws.model.rc.nec).

Anne
On 9/23/05, Filippo Diotalevi <[EMAIL PROTECTED]> wrote:
Hi Chris> I had a similar exception a while ago (I'm doing> doc/lit with Axis, too,> and am a relative newbie). I don't remember what the> exact problem was,> though, sorry.>
> You might try generating a server stub and setting> up a 'fake'> server/client (using Axis on both sides -- maybe> you're doing this> already?)Thank you for your suggestions.. I'll try to use the
TCP monitor.At the moment I'm using a fake server/client. I useAxis for building both client and server from theWSDL, and I obtain that exception.I guess that it could be something wrong with myWSDL...
filippo___Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MBhttp://mail.yahoo.it



RE: (newbie) SAXException: SimpleDeserializer encountered a child element

2005-09-23 Thread Filippo Diotalevi
Hi Chris

> I had a similar exception a while ago (I'm doing
> doc/lit with Axis, too,
> and am a relative newbie). I don't remember what the
> exact problem was,
> though, sorry.
> 
> You might try generating a server stub and setting
> up a 'fake'
> server/client (using Axis on both sides -- maybe
> you're doing this
> already?) 

Thank you for your suggestions.. I'll try to use the
TCP monitor.
At the moment I'm using a fake server/client. I use
Axis for building both client and server from the
WSDL, and I obtain that exception.
I guess that it could be something wrong with my
WSDL...

filippo









___ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it


RE: (newbie) SAXException: SimpleDeserializer encountered a child element

2005-09-23 Thread Ebert, Chris

Hi

I had a similar exception a while ago (I'm doing doc/lit with Axis, too,
and am a relative newbie). I don't remember what the exact problem was,
though, sorry.

You might try generating a server stub and setting up a 'fake'
server/client (using Axis on both sides -- maybe you're doing this
already?) Then capture the output using the tcpmon tool that comes with
Axis. *Then* you should be able to load the request and response into an
XML editor, such as XML Spy, assign the WSDL's schema (you might have to
put it in a separate file - with XML Spy you don't have to but there is
a trick to it) and then validate the request and response against the
schema. With Axis on both sides it *should* validate. If it doesn't, you
have found your problem.
Also, I have found it helpful to try my WSDL with other libraries, such
as gSOAP -- a C++ library, and I would suggest trying some of the
WSDL/XML authoring tools such as XML Spy, oXygen XML editor or SOAPscope
(which has an extension from the WS-I group that will probably tell you
about lots of things you're doing wrong -- at least it did for me :/ )

Chris

-Original Message-
From: Filippo Diotalevi [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 23, 2005 06:37
To: axis-user@ws.apache.org
Subject: (newbie) SAXException: SimpleDeserializer encountered a child
element

Hi, I'm developing a ws with Axis. I've got a wsdl (attached at the end
of this mail), which works fine when I use it to generate (wsdl2java) a
rpc/encoded ws. 
On the contrary, I need to make a document/literal ws and I have a lot
of problems. 

Can anyone help me? Thank you in advance!

Here are some details:

Using axis-generated test client, and I have the following exeception:
---
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/}hostname:sirius

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.ja
va:221)
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.jav
a:128)
at
org.apache.axis.encoding.DeserializationContext.endElement(Deserializati
onContext.java:1087)
---


Looking at the log, I see that the client creates the soap message:
---
?xml version="1.0" encoding="UTF-8"?>http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>http://ws.model.rc.nec";>dhttp://ws.model.rc.nec";>k112
---

and the server sends back the response:
---
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.userExceptionorg.xml.sax.SAXException:
SimpleDeserializer encountered a child element, which is NOT expected,
in something it was trying to
deserialize.http://xml.apache.org/axis/";>sirius


My WSDL is the following:



http://xml.apache.org/xml-soap";
xmlns:impl="urn:MyNameSpace"
xmlns:intf="urn:MyNameSpace"
xmlns:tns1="http://stato.ws.model.rc.nec";
xmlns:tns2="http://ws.model.rc.nec";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>


http://ws.model.rc.nec";
xmlns="http://www.w3.org/2001/XMLSchema";>
http://stato.ws.model.rc.nec"/>










 

(newbie) SAXException: SimpleDeserializer encountered a child element

2005-09-23 Thread Filippo Diotalevi
Hi, I'm developing a ws with Axis. I've got a wsdl
(attached at the end of this mail), which works fine
when I use it to generate (wsdl2java) a rpc/encoded
ws. 
On the contrary, I need to make a document/literal ws
and I have a lot of problems. 

Can anyone help me? Thank you in advance!

Here are some details:

Using axis-generated test client, and I have the
following exeception:
---
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/}hostname:sirius

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:221)
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)
at
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
---


Looking at the log, I see that the client creates the
soap message:
---
?xml version="1.0" encoding="UTF-8"?>http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>http://ws.model.rc.nec";>dhttp://ws.model.rc.nec";>k112
---

and the server sends back the response:
---
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.userExceptionorg.xml.sax.SAXException:
SimpleDeserializer encountered a child element, which
is NOT expected, in something it was trying to
deserialize.http://xml.apache.org/axis/";>sirius


My WSDL is the following:



http://xml.apache.org/xml-soap";
xmlns:impl="urn:MyNameSpace"
xmlns:intf="urn:MyNameSpace"
xmlns:tns1="http://stato.ws.model.rc.nec";
xmlns:tns2="http://ws.model.rc.nec";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>


http://ws.model.rc.nec";
xmlns="http://www.w3.org/2001/XMLSchema";>
http://stato.ws.model.rc.nec"/>

















http://stato.ws.model.rc.nec";
xmlns="http://www.w3.org/2001/XMLSchema";>
http://ws.model.rc.nec"/>


























































  

Re: SAXException SimpleDeserializer

2005-05-04 Thread Anne Thomas Manes
If you're forced to use Axis 1.0, then I think you will have to use
the message API and construct the messages manually. Axis 1.0 doesn't
support this type of complex document/literal service.

Anne

On 5/4/05, Swapna Gupta <[EMAIL PROTECTED]> wrote:
>  
>  
> 
> Hi, 
> 
> I am very new to Axis, SOAP etc. I am constructing a client to consume a
> webservice  (Amazon webservice). The server on which the client is to run,
> provides me with access to Axis 1.0, and I have no control over making them
> use higher versions of Axis. 
> 
>   
> 
> Using the WSDL available at:
> http://webservices.amazon.com/AWSECommerceService/US/AWSECommerceService.wsdl
> 
> And the WSDL2Java from Axis 1.0 I generated the stub classes. 
> 
>   
> 
>   
> 
>   
> 
> I am getting following error when the client code tries to consume the
> service: 
> 
>   
> 
>   
> 
>   
> 
> org.xml.sax.SAXException: SimpleDeserializer encountered a child element,
> which is NOT expected, in something it was trying to deserialize. 
> 
> at
> org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:188)
> 
> at
> org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:893)
> 
> at
> org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:200)
> 
> at
> org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:684)
> 
> at
> org.apache.axis.message.RPCElement.deserialize(RPCElement.java:241)
> 
> at
> org.apache.axis.message.RPCElement.getParams(RPCElement.java:265)
> 
> at
> org.apache.axis.client.Call.invoke(Call.java:1871) 
> 
> at
> org.apache.axis.client.Call.invoke(Call.java:1777) 
> 
> at
> org.apache.axis.client.Call.invoke(Call.java:1315) 
> 
> at
> com.amazon.xml.AWSECommerceService.AWSECommerceServiceBindingStub.itemLookup(AWSECommerceServiceBindingStub.java:1322)
> 
> at
> net.concordusa.bridge.amazon.WebCTAmazon.getItem(WebCTAmazon.java:119)
> 
> at
> net.concordusa.bridge.amazon.WebCTAmazon.getDisplay(WebCTAmazon.java:65)
> 
> at
> net.concordusa.bridge.amazon.WebCTAmazon.getHTML(WebCTAmazon.java:55)
> 
> at
> com.masterfileapi.bridge.webct.vista.powerlink.amazon.authentication.WebCTAmazonAuthentication.commit(WebCTAmazonAuthentication.java:41)
> 
> at
> com.webct.platform.coreservice.security.authentication.module.ProxyAuthenticationModule.commit(ProxyAuthenticationModule.java:182)
> 
> at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 
> at java.lang.reflect.Method.invoke(Method.java:324) 
> 
> at
> javax.security.auth.login.LoginContext.invoke(LoginContext.java:675)
> 
> at
> javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
> 
> at
> javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
> 
> at
> java.security.AccessController.doPrivileged(Native Method) 
> 
> at
> javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
> 
> at
> javax.security.auth.login.LoginContext.login(LoginContext.java:535)
> 
> at
> com.webct.platform.coreservice.security.authentication.common.VistaAgent.authenticate(VistaAgent.java:118)
> 
> at
> com.webct.platform.coreservice.security.authentication.common.VistaAuthenticationManager.getAgent(VistaAuthenticationManager.java:226)
> 
> at
> com.webct.platform.coreservice.security.authentication.common.AuthenticationHandler.handleRequest(AuthenticationHandler.java:155)
> 
> at
> com.webct.platform.tools.proxytool.actions.PTLaunchAction.perform(PTLaunchAction.java:203)
> 
> at
> org.apache.struts.action.Action.execute(Action.java:420) 
> 
> at
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
> 
> at
> com.webct.platform.coreservice.action.RequestProcessor.process(RequestProcessor.java:194)
> 
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
> 
> at
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
> 
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> 
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 
> at
> weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
> 
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
> 
> at
> weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)

SAXException SimpleDeserializer

2005-05-04 Thread Swapna Gupta








Hi,

I am very new to Axis, SOAP etc. I am constructing a client to consume
a webservice  (Amazon webservice). The server on which the client is to
run, provides me with access to Axis 1.0, and I have no control over making
them use higher versions of Axis. 

 

Using the WSDL available at:
http://webservices.amazon.com/AWSECommerceService/US/AWSECommerceService.wsdl

And the WSDL2Java from Axis 1.0 I generated the stub classes.

 

 

 

I am getting following error when the client code tries to consume the
service:

 

 

 

org.xml.sax.SAXException: SimpleDeserializer encountered a child
element, which is NOT expected, in something it was trying to deserialize.

    at
org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:188)

    at
org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:893)

    at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:200)

    at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:684)

    at
org.apache.axis.message.RPCElement.deserialize(RPCElement.java:241)

    at
org.apache.axis.message.RPCElement.getParams(RPCElement.java:265)

    at
org.apache.axis.client.Call.invoke(Call.java:1871)

    at
org.apache.axis.client.Call.invoke(Call.java:1777)

    at
org.apache.axis.client.Call.invoke(Call.java:1315)

    at
com.amazon.xml.AWSECommerceService.AWSECommerceServiceBindingStub.itemLookup(AWSECommerceServiceBindingStub.java:1322)

    at
net.concordusa.bridge.amazon.WebCTAmazon.getItem(WebCTAmazon.java:119)

    at
net.concordusa.bridge.amazon.WebCTAmazon.getDisplay(WebCTAmazon.java:65)

    at
net.concordusa.bridge.amazon.WebCTAmazon.getHTML(WebCTAmazon.java:55)

    at
com.masterfileapi.bridge.webct.vista.powerlink.amazon.authentication.WebCTAmazonAuthentication.commit(WebCTAmazonAuthentication.java:41)

    at
com.webct.platform.coreservice.security.authentication.module.ProxyAuthenticationModule.commit(ProxyAuthenticationModule.java:182)

    at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at
java.lang.reflect.Method.invoke(Method.java:324)

    at
javax.security.auth.login.LoginContext.invoke(LoginContext.java:675)

    at
javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)

    at
javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)

    at
java.security.AccessController.doPrivileged(Native Method)

    at
javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)

    at
javax.security.auth.login.LoginContext.login(LoginContext.java:535)

    at
com.webct.platform.coreservice.security.authentication.common.VistaAgent.authenticate(VistaAgent.java:118)

    at
com.webct.platform.coreservice.security.authentication.common.VistaAuthenticationManager.getAgent(VistaAuthenticationManager.java:226)

    at
com.webct.platform.coreservice.security.authentication.common.AuthenticationHandler.handleRequest(AuthenticationHandler.java:155)

    at
com.webct.platform.tools.proxytool.actions.PTLaunchAction.perform(PTLaunchAction.java:203)

    at
org.apache.struts.action.Action.execute(Action.java:420)

    at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)

    at
com.webct.platform.coreservice.action.RequestProcessor.process(RequestProcessor.java:194)

    at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)

    at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)

    at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

    at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

    at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)

    at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)

    at
weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)

    at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)

    at
com.webct.platform.coreservice.action.CacheControlFilter.doFilter(CacheControlFilter.java:68)

    at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)

    at
com.webct.platform.coreservice.action.RequestCleanupFilter.doFilter(RequestCleanupFilter.java:96)

    at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)

    at
weblogic.servlet.internal.WebAppServletContext$S