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><strTrackingNumber>1Z
1689
W20341211926</strTrackingNumber><strReferenceNumber></strRefe
renc
eNumber><strShipDate>/12/20/2001/</strShipDate><strDeliver
edTo
>DOCK</strDeliveredTo><strDeliveryLocation>COMPTON, CA,
US</st
rDeliveryLocation><strDeliveryDateTime>Dec 21, 2001 10:48
A.M.</strD
eliveryDateTime><strSignedBy>HERRERA</strSignedBy><strServ
iceT
ype>GROUND</strServiceType><strWeight>3.00</strWeight>&
lt;s
trStatus>Undelivered</strStatus><strEstDeliveryDate></strE
stDe
liveryDate><strPurchaseOrderNumber></strPurchaseOrderNumber>&
lt;s
trInvoiceNumber></strInvoiceNumber></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 ...