On Thursday, 27 September 2012 18:56:09 UTC+12, Phil wrote:
>
> Thanks Emmanuel. Am I able to consume other web services with Force.Com or 
> only the one of SaleForce?


Sure you can, any WSDL 

>
> I'm little bit confused of what is possible with Force.com.
>
>
It's very much like jaxws, just simpler and faster, it sits on top of 
URLFetch 
 

> By the way, Could you tell me if you know how to globally change the 
> timeout of URL fetching in Google App Engine?
>
>
There's no way I know to change the timeout using jaxws. But you can using 
the salesforce code, see comments in the code I posted yesterday
 

> Thanks a lot.
>
> Le mercredi 26 septembre 2012 23:51:29 UTC+2, Emanuele Ziglioli a écrit :
>>
>> Ok,
>>
>> have you managed to generate any code with the SalesForce tool?
>> As I wrote, I did get an error but most of the code generated anyway. 
>> I'll post the command line options I used if I can find them.
>>
>> The generated code contains three packages:
>>
>> com.sforce.ws.transport
>>      GaeHttpTransport.java (this is not specific to any WSDL)
>>
>> com.sforce.soap.types
>>      Many classes, mostly dependent on the WSDL, similar to the code 
>> generated by jaxws
>>
>> com.sforce.soap.service.dataxmldistribution.... // followed by the URL of 
>> your WSDL
>>     Connector.java
>>     SoapConnection.java
>>
>> This last package, as far as I recall, was the one that had some 
>> problems. I've attached Connector.java.
>> We've also made some proprietary changes to SoapConnection.
>> We're using the implementation in wsc-22.jar
>>
>> Example of usage:
>> try {
>>       ConnectorConfig config = new ConnectorConfig();
>>       config.setTransport( GaeHttpTransport.class );
>>       config.setTraceMessage(true);
>>       config.setReadTimeout(7000);  // this is the important part
>>       SoapConnection connection = Connector.newConnection(config);
>>       String xmlres = connection.getXml( parameters );
>> }
>> catch (ConnectionException e) {
>> }
>>
>> You really need to pass the first stage of code generation, don't worry 
>> about errors, see if anything at all has been generated, look at the 
>> command line options. Look at their source code and google for errors. 
>> Their source code shows more options that are not documented.
>>
>> Hope that helps,
>> E.
>>
>> On Thursday, 27 September 2012 02:53:16 UTC+12, Phil wrote:
>>>
>>> Emmanuele, Could you more describe your solution?
>>> I've a lot of problem with timeout exception and Jax-ws. I'm looking for 
>>> new solution for substituing Jax-RS for calling web services.
>>>
>>> Thanks
>>>
>>>>
>>>>>> 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/PGKLucIVZAEJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to