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/-/zdkhnxKDCwoJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.
package com.sforce.soap.service.dataxmldistribution.argos.cls.fr;
import com.sforce.ws.ConnectorConfig;
import com.sforce.ws.ConnectionException;
/**
* Generated class, please do not edit.
*/
public class Connector {
public static final String END_POINT = "https://ws-argos.cls.fr/argosDws/services/DixService";
public static SoapConnection newConnection(String username, String password) throws ConnectionException {
ConnectorConfig config = new ConnectorConfig();
config.setUsername(username);
config.setPassword(password);
return newConnection(config);
}
public static SoapConnection newConnection(ConnectorConfig config) throws ConnectionException {
if (config.getAuthEndpoint() == null) {
config.setAuthEndpoint(END_POINT);
}
if (config.getServiceEndpoint() == null) {
config.setServiceEndpoint(END_POINT);
}
return new SoapConnection(config);
}
}