Tony,

I ran into very similar problems when I tried to create my first Web
service. The STUB file gets created and then you either have to reset it
or update it manually. I am not sure. I found some great notes on it on
bprucell.org and then came up with this:

http://www.bennadel.com/index.cfm?dax=blog:430.view

Check out the method "RebuildStubFile". 

Hope that helps point you in the right direction.


......................
Ben Nadel
Certified Advanced ColdFusion MX7 Developer
www.bennadel.com
 
Need ColdFusion Help?
www.bennadel.com/ask-ben/

-----Original Message-----
From: Tony Hicks [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 31, 2007 9:27 PM
To: CF-Talk
Subject: Interacting with SOAP

I'm trying to interact with an auction site. Here is a truncated version
of their soap doc.

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:soap="
http://schemas.xmlsoap.org/soap/envelope/";>
  <soap:Header>
    <RequesterCredentials xmlns="API_V2">
      <DevKey>string</DevKey>
      <AppKey>string</AppKey>
      <UserName>string</UserName>
      <Password>string</Password>
    </RequesterCredentials>
  </soap:Header>
  <soap:Body>
    <GetMyAuctions xmlns="API_V2">
      <GetMyAuctionsRequest>
        <Query>string</Query>
        <CategoryID>int</CategoryID>
        <TotalOnly>boolean</TotalOnly>
        <PriceRangeFilter>
          <MinPrice>decimal</MinPrice>
          <MaxPrice>decimal</MaxPrice>
        </PriceRangeFilter>
      </GetMyAuctionsRequest>
    </GetMyAuctions>
  </soap:Body>
</soap:Envelope>

Here is my most recent coding attempt...

gma = CreateObject("webservice", "auctionsiteurl"); RequestCredentials =
StructNew(); RequestCredentials.DevKey="...";
RequestCredentials.AppKey="..."; RequestCredentials.UserName="...";
RequestCredentials.Password="...";
gma.setHeader("API_V2","RequestCredentials",RequestCredentials);

I think this should work... but its not... I've tried three or four
different ways and I get "Could not generate stub objects for web
service invocation."

Am I even close? Any help appreciated.




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268367
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to