Title: How to pass Element argument

Miguel,

 

Thanks for the reply. I still got error like:

java.lang.IllegalArgumentException: I only know how to serialize an 'org.w3c.dom.Element'.

[SOAPException: faultCode=SOAP-ENV:Server; msg=java.lang.IllegalArgumentException: I only know how to serialize an 'org.w3c.dom.Element'.]

 

I wonder if there's something to do with the service mapping. I am not sure what and how to do.

Something like XMLParameterSerializer.

Regards,
-----------------------------
Yong Miao
[EMAIL PROTECTED]

-----------------------------

-----Original Message-----
From: Miguel Perez [mailto:[EMAIL PROTECTED]]
Sent:
Wednesday, May 15, 2002 8:57 AM
To: '
[EMAIL PROTECTED]'
Subject: RE: How to pass Element argument

 

  call.setEncodingStyleURI(Constants.NS_URI_LITERAL_XML);
  
 Element inputNode = tempDocument.createElement("InputParams");
 inputNode.setAttribute("partnerName",partnerName);
  
  params = new java.util.Vector();
  params.addElement(new Parameter("productinformation",Element.class,inputNode,Constants.NS_URI_LITERAL_XML));

-----Original Message-----
From: Yong Miao [mailto:[EMAIL PROTECTED]]
Sent:
Wednesday, May 15, 2002 10:48 AM
To: [EMAIL PROTECTED]
Subject: How to pass Element argument

Hi,

I have a service that requires DOM Element as input. There's no mapping for the service.

How should I a DOM Element variable to the service from client?

I got errors like this:

[SOAPException: faultCode=SOAP-ENV:Client; msg=No Serializer found to serialize a 'org.w3c.dom.Element' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.; targetException=java.lang.IllegalArgumentException: No Serializer found to serialize a 'org.w3c.dom.Element' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.]

        at org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:324)

        at org.apache.soap.rpc.Call.invoke(Call.java:205)

        at OrderClient.placeOrder(OrderClient.java:44)

        at OrderClient.main(OrderClient.java:83)

Thanks,

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Yong Miao

[EMAIL PROTECTED]

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to