I have a web application that need to call a web service to process something. As usual, I ask for the client code from client, so that I can code base on the client code.
However, the given client code is in jar file format. Thus I just really change on it. I just can call it.
Now I have some problem. The client code given is not up to date, which means, the client code I use, is actually not match with the real web services.
This is part of my wsdl that I use to fire to web service through SOAP UI:
<attributeSet>
<!--Zero or more repetitions:-->
<attributes>
<value>mmm</value>
<attributeID>DP</attributeID>
</attributes>
</attributeSet>
When I use SOAP UI to fire to the web service base on the given wsdl, it will throw me error as follow:
AttributeSet::validateFieldType (Field 'Password Format' (Field ID 30), data type 'STRING' (Type ID 1), Field value '0', Attribute set Credentials)
Thus, I contact the web service person, and tell them I want the latest client code. But, due to some technical problem at their site, they unable to provide the latest client code to us. And they just ask me to change the wsdl myself as follow:
<attributeSet>
<!--Zero or more repetitions:-->
<attributes>
<value xsi:type="xsd:string">m</value>
<attributeID>DP</attributeID>
</attributes>
</attributeSet>
Its work on SOAP UI call.
However, now I want to code it in java, I just use the given client code to set the value:
ca1.setAttributeID("DP");
ca1.setValue("m");
What can I code in java code, to make it have the xsi:type="xsd:string"
when do web service call from application?