axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Hirschi" <ohirs...@pm-medici.ch>
Subject soap_2.3.1 --> axis_1.2.1
Date Wed, 14 Sep 2005 09:58:12 GMT
Hi,

I call a SOAP-Webservice with the library apache-soap_2.3.1 as followed
-----------------------------------------
Response resp = oCall.invoke(oURL,
SOAP_TARGETOBJECT_URI+"/HelloUBS_InvestorsGuide");
if(resp.generatedFault()) {
    Fault oFault = resp.getFault();
} else {
    Parameter oResult = resp.getReturnValue();
    System.out.println(oResult.getValue().toString());
}
-----------------------------------------

Due to I can not get the return value of a new SOAP-Webservice I call
the ne Webservice with apache-axis_1.2.1 as followed: (so I can get the
return value)
-----------------------------------------
oCall.setReturnType(XMLType.XSD_STRING);
String resp = (String) oCall.invoke(new Object[] {"Hello!"});
System.out.println(resp);
-----------------------------------------

But how do I get the Faults ("resp.generatedFault()" in the older
version) with the new implementation?

Thanks.
-- 
Oliver Hirschi
http://www.FamilyHirschi.ch



Mime
View raw message