Re: Help with XML and ASP .NET Web Service

2006-04-12 Thread Phillip Duba
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  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 = "235561" 
document.AppendChild(element) 
assessmentOrderRequest.UserArea.Value = document.DocumentElement 

The wsdl piece for UserArea is defined as


 
   
 


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={123456},}}, ... }
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


RE: Help with XML and ASP .NET Web Service

2006-04-12 Thread Dave Watts
> 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:237633
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


Re: Help with XML and ASP .NET Web Service

2006-04-12 Thread Phillip Duba
I should also point out I'm running 6.1 as of right now. CFMX7 is coming, but 
this integration will go before we're on it.

> I am trying to invoke a partners web service. It is an ASP .NET web 
> service that requires a number of paramters, one being an "object". 
> I've gotten the minimum requirements done using the Structs/Array 
> makeup for a complex SOAP Object. Where I am having problems is in an 
> optional item which is an XML Element type. I've tried using XMLParse 
> on the data I need and getting the first (and only) child node and 
> passing it in, but to no avail. I've done some other things with the 
> XML functions or even representint the XML element as a structure, but 
> again, nothing seems to work. Has anybody run into this problem before 
> and found a solution? Any help would be appreciated. Thanks,
> 
Phil

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237586
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


Re: Help with XML and ASP .NET Web Service

2006-04-12 Thread Phillip Duba
Jacob, thanks for the suggestion. I did try it using the following code:

xmlUA = XmlNew();
xmlUA = XmlElemNew(xmlUA,"","AdditionalInfo");
xmlUA.XmlText = 
"1116";
stOrderRequest.UserArea = StructNew();
stOrderRequest.UserArea.value = xmlUA;
// stOrderRequest.UserArea = xmlUA; (I've done both here)


The error I get is:

Web service operation "RequestOrder" with parameters {... ,[EMAIL PROTECTED], 
...} could not be found.

I'm guessing there is something with .NET not recognizing the CF XmlNode. I 
wonder if using a Java XML object definition would be better? Thanks,

Phil

> Have you tried using the XmlElemNew function?  The docs say this:
> "Creates an XML document object element."  Typically I use this for
> creating an object that I intend to save to an XML file, but it might
> work for a webservice as well.
> 
> > -Original Message-
> > From: Phillip Duba [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, April 12, 2006 9:41 AM
> > 
> > I am trying to invoke a partners web service. It is an ASP 
> > .NET web service that requires a number of paramters, one 
> > being an "object". I've gotten the minimum requirements done 
> > using the Structs/Array makeup for a complex SOAP Object. 
> > Where I am having problems is in an optional item which is an 
> > XML Element type. I've tried using XMLParse on the data I 
> > need and getting the first (and only) child node and passing 
> > it in, but to no avail. I've done some other things with the 
> > XML functions or even representint the XML element as a 
> > structure, but again, nothing seems to work. Has anybody run 
> > into this problem before and found a solution? Any help would 
> > be appreciated. Thanks,
> 
> This transmission may contain information that is privileged, 
> confidential and/or exempt from disclosure under applicable law. If 
> you are not the intended recipient, you are hereby notified that any 
> disclosure, copying, distribution, or use of the information contained 
> herein (including any reliance thereon) is STRICTLY PROHIBITED. If you 
> received this transmission in error, please immediately contact the 
> sender and destroy the material in its entirety, whether in electronic 
> or hard copy format. Thank you. A1.
> 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237581
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


RE: Help with XML and ASP .NET Web Service

2006-04-12 Thread Munson, Jacob
Have you tried using the XmlElemNew function?  The docs say this:
"Creates an XML document object element."  Typically I use this for
creating an object that I intend to save to an XML file, but it might
work for a webservice as well.

> -Original Message-
> From: Phillip Duba [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 12, 2006 9:41 AM
> 
> I am trying to invoke a partners web service. It is an ASP 
> .NET web service that requires a number of paramters, one 
> being an "object". I've gotten the minimum requirements done 
> using the Structs/Array makeup for a complex SOAP Object. 
> Where I am having problems is in an optional item which is an 
> XML Element type. I've tried using XMLParse on the data I 
> need and getting the first (and only) child node and passing 
> it in, but to no avail. I've done some other things with the 
> XML functions or even representint the XML element as a 
> structure, but again, nothing seems to work. Has anybody run 
> into this problem before and found a solution? Any help would 
> be appreciated. Thanks,

This transmission may contain information that is privileged, confidential 
and/or exempt from disclosure under applicable law. If you are not the intended 
recipient, you are hereby notified that any disclosure, copying, distribution, 
or use of the information contained herein (including any reliance thereon) is 
STRICTLY PROHIBITED. If you received this transmission in error, please 
immediately contact the sender and destroy the material in its entirety, 
whether in electronic or hard copy format. Thank you. A1.



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237555
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54