function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
pablorpablor 

Web Service Callout

Hi

We are trying to use WebService callout, and need a working example.

 

I've tried working through the example 'Apex Web Services and Callouts' at http://wiki.developerforce.com/page/Apex_Web_Services_and_Callouts but can't get it to work - I think it may be because we don't have an Amazon S3 account - when I key http://s3.amazonaws.com/doc/2006-03-01/ I get:

<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>D0553BA616766C71</RequestId>
<HostId>It4ZN5WnKCGiqdT7ryrP28BPOWWlsLA/N4l4PWFPtimNOTea+CuPOBY1/KjLkw4G</HostId>
</Error>

 

This means we can't get the WSDL to generate the apex method

 

Does anybody have a simple HelloWorld type example that we can work through?

 

Thanks!

Pablo

pablorpablor

Hi

Thanks for your reply.

The problem with this example (http://www.salesforce.com/us/developer/docs/apexcode/index_Left.htm#StartTopic=Content/apex_callouts...) is that the webservice is uses is:

http://s3.amazonaws.com/doc/2006-03-01/

 

But this webservice URL doesn't work, so the example is pretty useless...

 

Pablo

pablorpablor

We've managed to get the strikeiron webservice working.

 

http://www.salesforce.com/us/developer/docs/apexcode/index_Left.htm#StartTopic=Content/apex_callouts_wsdl2apex.htm is very usefull, but it misses a couple of steps.

 

1st it's not clear how you get the strikeiron WSDL from this url:http://ws.strikeiron.com/relauto/iplookup?WSDL

 

Next, it's not explained that you can regiter with strikeiron, and then get a username and password that you can drop in the code example.

 

Thirdly the code snippets for the stub are incomplete - there are some other classes and methods required.

 

We are now stuggling with connecting to our own web service, but I'm going to raise another post with details.

 

Pablo