Discussion:
CRM 3.0 SOAP Interface
(too old to reply)
s***@gmail.com
2005-12-06 17:09:41 UTC
Permalink
I downloaded the latest SDK but the SOAP interface documentation still
says: "Content to be provided in a future release." Does anyone have an
example of how to use the SOAP API from a non .NET client? I am
currently trying to access with Java and Apache AXIS. Here's my
findings so far:

I ran WSDL2Java on the WSDL and it successfully generated all of the
proxies. The CrmServiceSoapStub constructor exceeded Java's 64K method
limit so I had to refactor that method in order to compile.

I get a 401Access Denied when trying to make any call. The Java version
of CrmService does not have a Credentials property, so I am not sure
where to set Credentials. Do I need to find my own kerberos/NTLM
authentication library and authenticate with that first? I tried
populating the inherited Username/Password properties for the
CrmServiceStub but that generates an unsupported authentication type
error. Do I have to enable basic authentication on the server? Any help
or example code would be GREATLY appreciated.

thanks,
Ben
s***@gmail.com
2005-12-06 22:16:49 UTC
Permalink
Few more things...

If you run WSDL2Java make sure to set the timeout parameter to -1
(infinite) because the WSDL takes much longer to process than the
default 45 second timeout allows.

I was able to access the CRM services via SOAP by enabling
BasicAuthentication on crmservice.asmx and using
CrmServiceSoapStub.setUsername/setPassword.

Complex types are successfully serialized and deserialized to the
client side Java classes by Axis. If anyone needs sample code let me
know.
MJ Miller {MSFT}
2005-12-14 17:07:31 UTC
Permalink
One of our developers was able to make this work by upgrading to the most
recent version of JDeveloper. Beyond that I don't have any solid answers. I
pushed hard for non-.Net clients and we got most of it. Let us know how you
fare with the upgrade.
--
MJ Miller
Microsoft CRM Technical Lead

** The opinions and comments in this post are my own and in no way reflect
the opinions of Microsoft or the Microsoft CRM team. This posting is not an
offer of support, either immediate or ongoing, and no support is implied.
Some of the information posted may include non-supported workarounds and
code samples.
rajasekhar
2010-06-11 15:33:17 UTC
Permalink
Can you send me sample code to authenticate from JAVA

url:http://www.ureader.com/msg/12653983.aspx

Loading...