Hi Everyone,
I'm having some difficulties executing a web method from an Axis2 client on
a .NET (C#) service. The method signature on the .NET service looks similar
to this:
public Object result executeScript(String scriptID, Object [] parameters)
The method takes a script id + an array of generic parameters and executes
some script referenced by the script id using the specified parameters. The
results of the script execution are returned as an object.
The problem is that in the WSDL, parameters is translated as ArrayOfAnyType
and Axis2 does not translate this correctly into an object array when the
client is generated using WSDL2Java. Instead Axis 2 generates a new ADB bean
that looks like this:
ArrayOfAnyType
- localAnyType : OMElement
- getAnyType(): OMElement
- setAnyType(): OMElement
-.......
Essentially, instead of translating "anyType" to Object, Axis2 maps it to
OMElement.
WSDL:
<s:complexType name="ArrayOfAnyType">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="anyType"
nillable="true" />
</s:sequence>
</s:complexType>
I tried to generate the client using Axis1 and it worked just fine and it
was able to translate the parameter array to java.lang.Object [] and the
return type to Object. However, I'm constrained to use Axis2 and I'm kind of
lost as to how to make this work. Also, I can't change the signature of the
web method as it needs to remain generic.
Any help would be greatly appreciated,
Thank you!
Marius
--
View this message in context:
http://www.nabble.com/Axis2-Client---.NET-Service-Problem-tp18895959p18895959.html
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]