Try using the wsdl2java stuff that will generate the proxies for you.
The documentation is here (beware line breaks!):

http://cvs.apache.org/viewcvs.cgi/~checkout~/xml-axis/java/docs/user-gui
de.html#WSDL2Java

______________________
Scott Seely


-----Original Message-----
From: ajack [mailto:[EMAIL PROTECTED]] 
Sent: Monday, April 08, 2002 4:37 PM
To: [EMAIL PROTECTED]
Subject: 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&g
t;1Z
1689
W20341211926&lt;/strTrackingNumber&gt;&lt;strReferenceNumber&gt;&lt;/str
Refe
renc
eNumber&gt;&lt;strShipDate&gt;/12/20/2001/&lt;/strShipDate&gt;&lt;strDel
iver
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;str
Serv
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></Ge
tTra
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 ...

Reply via email to