RE: org.xml.sax.SAXException: SimpleDeserializer encountered a ch ild element...

2005-03-15 Thread BALDWIN, ALAN J [AG-Contractor/1000]
Actually, that WSDL validated in the eclipse plugin... I was including an 
external wsdl into the wsdd file so that axis would not generate one for me.  I 
have determined that is not the problem.  

Here is what is happening now (I've been dealing with this issue for a while):  
I have a PurchaseOrder java bean with a description field on it.

Again, I'm using document/literal.

If the soap message looks like this, it works:

SOAP-ENV:Body
   echoMessage
descriptiontest.../description
   /echoMessage
SOAP-ENV:Body

This does NOT work:

SOAP-ENV:Body
   echoMessage
PurchaseOrder
descriptiontest.../description
PurchaseOrder
   /echoMessage
SOAP-ENV:Body


When I put the PurchaseOrder node in, it breaks.  This is just a proof of 
concept service, but when we implement, I will need the root node in there to 
validate against an industry standard schema.  In this case, I'm just using 
PurchaseOrder.


Any ideas?  Thanks for the reply.


Here is the WSDL: (copied from the running service, auto-generated from axis)

wsdl:definitions 
targetNamespace=http://localhost:8080/poc-axis-server/services/MessageService;

!--
WSDL created by Apache Axis version: 1.2RC2
Built on Nov 16, 2004 (12:19:44 EST)
--

wsdl:types

schema elementFormDefault=qualified 
targetNamespace=http://localhost:8080/poc-axis-server/services/MessageService;
complexType name=purchaseOrder
sequence
element name=description nillable=true 
type=xsd:string/
/sequence
/complexType

element name=echoMessageReturn type=xsd:string/

/schema

schema elementFormDefault=qualified 
targetNamespace=http://server.web.services.farmsource.com;
import 
namespace=http://localhost:8080/poc-axis-server/services/MessageService/
element name=po type=impl:purchaseOrder/
/schema
/wsdl:types

wsdl:message name=echoMessageResponse
wsdl:part element=impl:echoMessageReturn 
name=echoMessageReturn/
/wsdl:message

wsdl:message name=echoMessageRequest
wsdl:part element=tns1:po name=po/
/wsdl:message

wsdl:portType name=JaxRpcMessageService

wsdl:operation name=echoMessage parameterOrder=po
wsdl:input message=impl:echoMessageRequest 
name=echoMessageRequest/
wsdl:output message=impl:echoMessageResponse 
name=echoMessageResponse/
/wsdl:operation

/wsdl:portType

wsdl:binding name=MessageServiceSoapBinding 
type=impl:JaxRpcMessageService
wsdlsoap:binding style=document 
transport=http://schemas.xmlsoap.org/soap/http/

wsdl:operation name=echoMessage
wsdlsoap:operation soapAction=/

wsdl:input name=echoMessageRequest
wsdlsoap:body use=literal/
/wsdl:input

wsdl:output name=echoMessageResponse
wsdlsoap:body use=literal/
/wsdl:output
/wsdl:operation
/wsdl:binding

wsdl:service name=JaxRpcMessageServiceService
wsdl:port binding=impl:MessageServiceSoapBinding 
name=MessageService
wsdlsoap:address 
location=http://localhost:8080/poc-axis-server/services/MessageService/
/wsdl:port
/wsdl:service

/wsdl:definitions




-Original Message-
From: Dino Chiesa [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 15, 2005 4:24 PM
To: axis-user@ws.apache.org
Subject: RE: org.xml.sax.SAXException: SimpleDeserializer encountered a
child element...


It looks like a disagreement in XML namespace. 

The echoMessage in the wsdl appears to be in a particular namespace,
whereas the VB6 client is sending a message in no namespace at all.  

echoMessage
  PurchaseOrder
descriptionstring/description
  /PurchaseOrder
/echoMessage


The WSDL you sent isn't a real wsdl.  It is missing a bunch of stuff?
So it is hard to say whether what I wrote above is right. 

 

-Original Message-
From: BALDWIN, ALAN J [AG-Contractor/1000]
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 15, 2005 5:03 PM
To: 'axis-user@ws.apache.org'
Subject: RE: org.xml.sax.SAXException: SimpleDeserializer encountered a
child element...

Here is the response I'm getting, if this helps.  I've seen several
people having this problem on the web, but nobody seems to have posted
any fixes.

soapenv:Fault
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
faultcodesoapenv:Server.userException/faultcode
faultstringorg.xml.sax.SAXException: SimpleDeserializer
encountered a child element, which is NOT expected, in something it was
trying to deserialize./faultstring
detail
ns1:hostname
xmlns:ns1=http://xml.apache.org/axis/;LCEVER/ns1:hostname
/detail
/soapenv:Fault

Thanks,

   -Alan Baldwin-


-Original Message-
From: BALDWIN, ALAN J [AG-Contractor/1000]
[mailto:[EMAIL PROTECTED]

RE: org.xml.sax.SAXException: SimpleDeserializer encountered a ch ild element...

2005-03-15 Thread BALDWIN, ALAN J [AG-Contractor/1000]
I forgot to include this:

 beanMapping
languageSpecificType=java:com.farmsource.domain.PurchaseOrder
qname=impl:purchaseOrder

xmlns:impl=http://localhost:8080/poc-axis-server/services/MessageService;
  /

-Original Message-
From: BALDWIN, ALAN J [AG-Contractor/1000]
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 15, 2005 4:40 PM
To: 'axis-user@ws.apache.org'
Subject: RE: org.xml.sax.SAXException: SimpleDeserializer encountered a
ch ild element...


Actually, that WSDL validated in the eclipse plugin... I was including an 
external wsdl into the wsdd file so that axis would not generate one for me.  I 
have determined that is not the problem.  

Here is what is happening now (I've been dealing with this issue for a while):  
I have a PurchaseOrder java bean with a description field on it.

Again, I'm using document/literal.

If the soap message looks like this, it works:

SOAP-ENV:Body
   echoMessage
descriptiontest.../description
   /echoMessage
SOAP-ENV:Body

This does NOT work:

SOAP-ENV:Body
   echoMessage
PurchaseOrder
descriptiontest.../description
PurchaseOrder
   /echoMessage
SOAP-ENV:Body


When I put the PurchaseOrder node in, it breaks.  This is just a proof of 
concept service, but when we implement, I will need the root node in there to 
validate against an industry standard schema.  In this case, I'm just using 
PurchaseOrder.


Any ideas?  Thanks for the reply.


Here is the WSDL: (copied from the running service, auto-generated from axis)

wsdl:definitions 
targetNamespace=http://localhost:8080/poc-axis-server/services/MessageService;

!--
WSDL created by Apache Axis version: 1.2RC2
Built on Nov 16, 2004 (12:19:44 EST)
--

wsdl:types

schema elementFormDefault=qualified 
targetNamespace=http://localhost:8080/poc-axis-server/services/MessageService;
complexType name=purchaseOrder
sequence
element name=description nillable=true 
type=xsd:string/
/sequence
/complexType

element name=echoMessageReturn type=xsd:string/

/schema

schema elementFormDefault=qualified 
targetNamespace=http://server.web.services.farmsource.com;
import 
namespace=http://localhost:8080/poc-axis-server/services/MessageService/
element name=po type=impl:purchaseOrder/
/schema
/wsdl:types

wsdl:message name=echoMessageResponse
wsdl:part element=impl:echoMessageReturn 
name=echoMessageReturn/
/wsdl:message

wsdl:message name=echoMessageRequest
wsdl:part element=tns1:po name=po/
/wsdl:message

wsdl:portType name=JaxRpcMessageService

wsdl:operation name=echoMessage parameterOrder=po
wsdl:input message=impl:echoMessageRequest 
name=echoMessageRequest/
wsdl:output message=impl:echoMessageResponse 
name=echoMessageResponse/
/wsdl:operation

/wsdl:portType

wsdl:binding name=MessageServiceSoapBinding 
type=impl:JaxRpcMessageService
wsdlsoap:binding style=document 
transport=http://schemas.xmlsoap.org/soap/http/

wsdl:operation name=echoMessage
wsdlsoap:operation soapAction=/

wsdl:input name=echoMessageRequest
wsdlsoap:body use=literal/
/wsdl:input

wsdl:output name=echoMessageResponse
wsdlsoap:body use=literal/
/wsdl:output
/wsdl:operation
/wsdl:binding

wsdl:service name=JaxRpcMessageServiceService
wsdl:port binding=impl:MessageServiceSoapBinding 
name=MessageService
wsdlsoap:address 
location=http://localhost:8080/poc-axis-server/services/MessageService/
/wsdl:port
/wsdl:service

/wsdl:definitions




-Original Message-
From: Dino Chiesa [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 15, 2005 4:24 PM
To: axis-user@ws.apache.org
Subject: RE: org.xml.sax.SAXException: SimpleDeserializer encountered a
child element...


It looks like a disagreement in XML namespace. 

The echoMessage in the wsdl appears to be in a particular namespace,
whereas the VB6 client is sending a message in no namespace at all.  

echoMessage
  PurchaseOrder
descriptionstring/description
  /PurchaseOrder
/echoMessage


The WSDL you sent isn't a real wsdl.  It is missing a bunch of stuff?
So it is hard to say whether what I wrote above is right. 

 

-Original Message-
From: BALDWIN, ALAN J [AG-Contractor/1000]
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 15, 2005 5:03 PM
To: 'axis-user@ws.apache.org'
Subject: RE: org.xml.sax.SAXException: SimpleDeserializer encountered a
child element...

Here is the response I'm getting, if this helps.  I've seen several
people having this problem on the web, but nobody seems to have posted
any fixes.

soapenv:Fault
xmlns:soapenv=http://schemas.xmlsoap.org/soap