You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by ajack <aj...@openbiz.biz> on 2002/04/09 01:37:28 UTC

org.apache.axis.message.RPCElement back from Document style call...

I am attempting to call a .Net web services, a document style operation, via
AXIS beta 1 and for the first time.

I've trawled the code/documentation and the mailing list archive but I do
not seem able to find a sample, so I've done what I can.

Basically I do (amongst t he usual others) :

-	Call.setProperty(	org.apache.axis.client.Call.OPERATION_STYLE_PROPERTY,
				"document");
-	Call.invoke w/ an array of org.apache.axis.message.SOAPBodyElement

-	get the return object from invoke

and I seem to get back a vector of:

	org.apache.axis.message.RPCElement

... which is not right, and which crashes if I try to open it up [e.g.
getParams()]. [Note: if I do a toString I get a single memeber in the XML
inside.]

----------------------------------------------------------------------------
------
Call Response: [java.util.Vector]       [[<GetTrackingInfoResponse
xmlns="http:/
/www.serviceobjects.com/"><GetTrackingInfoResult>&lt;strTrackingNumber&gt;1Z
1689
W20341211926&lt;/strTrackingNumber&gt;&lt;strReferenceNumber&gt;&lt;/strRefe
renc
eNumber&gt;&lt;strShipDate&gt;/12/20/2001/&lt;/strShipDate&gt;&lt;strDeliver
edTo
&gt;DOCK&lt;/strDeliveredTo&gt;&lt;strDeliveryLocation&gt;COMPTON, CA,
US&lt;/st
rDeliveryLocation&gt;&lt;strDeliveryDateTime&gt;Dec 21, 2001 10:48
A.M.&lt;/strD
eliveryDateTime&gt;&lt;strSignedBy&gt;HERRERA&lt;/strSignedBy&gt;&lt;strServ
iceT
ype&gt;GROUND&lt;/strServiceType&gt;&lt;strWeight&gt;3.00&lt;/strWeight&gt;&
lt;s
trStatus&gt;Undelivered&lt;/strStatus&gt;&lt;strEstDeliveryDate&gt;&lt;/strE
stDe
liveryDate&gt;&lt;strPurchaseOrderNumber&gt;&lt;/strPurchaseOrderNumber&gt;&
lt;s
trInvoiceNumber&gt;&lt;/strInvoiceNumber&gt;</GetTrackingInfoResult></GetTra
ckin
gInfoResponse>]]

Vector Element is [org.apache.axis.message.RPCElement]

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

Am I missing some switch which tells AXIS how to process the result? I see
one such method, but it doesn't read like it does what I need. Also, since
I've set document style, I wouldn't have thought I'd have needed to.

Any advise/pointers appreciated.

regards

Adam
--
Open Business Interchange: <http://www.openbiz.biz>
The Revolutionary B2Bi Web Service ...