Dave, I can't do that because they are not expecting a full XML document but an 
XML node and the ToString()/XmlParse() puts the <?xml version="1.0" 
encoding="UTF-8"?> tag at the beginning. Here's the example VB code from the 
auto-generated help for their service:

Dim document As XmlDocument = New XmlDocument 
Dim element As XmlElement = document.CreateElement("AdditionalData") 
element.InnerText = "<JobId>235561</JobId>" 
document.AppendChild(element) 
assessmentOrderRequest.UserArea.Value = document.DocumentElement 

The wsdl piece for UserArea is defined as

<s:complexType name="UserArea">
 <s:sequence>
  <s:any minOccurs="0" maxOccurs="1" /> 
 </s:sequence>
</s:complexType>

Again, I can follow building everything in the example in their help except 
this piece. I've even tried to build a java XML document based on 
javax.xml.parsers.DocumentBuilderFactory class and all its methods and that 
fails. The object definition is sending it over in a string representation:
{ ... ,{USERAREA={{VALUE={<AdditionalData 
xmlns=""><JobId>123456</JobId></AdditionalData>},}}, ... }
I don't know VB.NET enough and they don't know CF enough to help me with the 
mapping and decompiling the stub objects generated gives me little information. 
I was hoping someone out there on this list had hit this problem before. Thanks 
again for the suggestions though,

Phil

>> The error I get is:
>> 
>> Web service operation "RequestOrder" with parameters {... 
>> ,[EMAIL PROTECTED], ...} could 
>> not be found.
>
>This looks to me like you need to convert your XML object to a string before
>sending it elsewhere. Use the ToString function on the CF XML object in
>question.
>
>Dave Watts, CTO, Fig Leaf Software
>http://www.figleaf.com/
>
>Fig Leaf Software provides the highest caliber vendor-authorized
>instruction at our training centers in Washington DC, Atlanta,
>Chicago, Baltimore, Northern Virginia, or on-site at your location.
>Visit http://training.figleaf.com/ for more information!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237642
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to