Hello!
I need help on this! I am trying make an update
operation on a web services. I used WSDL2Java to create TestCase class. The
testcase class use a method taking in parameter two value, a string and a
updateListItemsUpdates... wich is in fact a MessageElement
binding.updateListItems(new java.lang.String(), new
lists.ws.UpdateListItemsUpdates());
I am changing this line to put value in it and I
wanna pass this:
<Method ID='1' Cmd='New'>
<Field Name='Title'>Family
name</Field>
<Field
Name='FirstName'>First Name</Field>
<Field
Name='Email'>address</Field>
</Method>
as my second argument, but I have no idea how to
put this in a MessageElement[].
In .NET I was using this and it was working
perfectly:
Dim xDoc As New System.Xml.XmlDocument Dim xBatch As System.Xml.XmlElement = xDoc.CreateElement("Batch")xBatch.SetAttribute("OnError", "Return") xBatch.InnerXml = "<Method ID='1' Cmd='New'><Field Name='Title'>Last Name</Field><Field Name='FirstName'>First Name</Field><Field Name='Email'>address</Field></Method>" Dim xReturn As System.Xml.XmlNode = oListWS.UpdateListItems("Contacts", xBatch)Any help would be greatly
appreciated!
Below is the complex type from my
WSDL.
< s:element name="UpdateListItems"><s:complexType> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="listName" type="s:string" /> <s:element minOccurs="0" maxOccurs="1" name="updates"> <s:complexType mixed="true"> <s:sequence> <s:any /> </s:sequence> </s:complexType> </s:element> </s:sequence> </s:complexType> </s:element>
Thanks! |
- Help on creating a MessageElement Mona Yazbeck
- Re: Help on creating a MessageElement Jaka Močnik
- Re: Help on creating a MessageElement Mona Yazbeck
- Re: Help on creating a MessageElement Jaka Močnik
- Re: Help on creating a MessageElement Mona Yazbeck
- Re: Help on creating a MessageElement Jaka Močnik
- Re: Help on creating a MessageEleme... Mona Yazbeck
- Re: Help on creating a MessageE... Mona Yazbeck