I consume some third party .Net web services. Typically, it should be pretty 
easy. Since they are obviously using SOAP, there must be a corresponding WSDL. 
You should be able to punch the address to the WSDL into a tool like SOAPUI and 
have it generate request SOAP envelopes for you. From there, you know what the 
service is expecting. Hopefully, the SOAP envelope will refer to any xsd 
documents that it is using, which should give you further definition of what 
types of values can be inserted into the request envelope.

Ron


-----Original Message-----
From: Bruno Melloni [mailto:bruno.mell...@chickasaw.net] 
Sent: Thursday, March 11, 2010 7:20 AM
To: 'users@cxf.apache.org'
Subject: Service authentication credentials

I am trying to access a Microsoft-developed service that requires 
authentication.  Being Microsoft, they do not document anything at the web 
service level since they want you to use Visual Studio which creates a .NET 
proxy that is capable of using NTLM to supply the username/password to the 
underlying web service.  I *think* that they are following web services 
standards for the underlying web service.

Of course, I am trying to use a CXF client to access the underlying web service 
from Java.  I used wsdl2java to generate the java classes, but I see no 
credentials-related information (which you do see in the .NET proxy).  That 
makes me suspect that they must be in the stored in the SOAP headers and that 
in CXF we access them in a different way. 

I could use any clues on how to:

a) Figure out how authentication is being done for this web service.

b) Figure out how to provide the credentials to the web service when called.  I 
am using the Spring approach to get the CXF client proxy and my current 
configuration looks like:

  <jaxws:client id="gpClient" 
address="http://myServer.myDomain/DynamicsGPWebServices/DynamicsGPService.asmx"; 
 
                
serviceClass="com.microsoft.schemas.dynamics.gp._2006._01.DynamicsX0020GPSoap" 
/>

Needless to say, my experience with CXF is not too deep (created and called a 
few services via the Spring method - the simplest), and my knowledge of web 
services authentication is zero.  Unfortunately CXF's documentation isn't very 
helpful for someone at my stage of learning CXF.  I'll appreciate any help I 
can get.

I tried to attach a copy of the WSDL for the service that I'm trying to access, 
but it exceeds the size limits for this mailing list.

Reply via email to