415 : Unsupported Media Type, you can get the request header and analyse it.


Me Coder wrote:
> 
> Does not work still :(  Still the same 415 error.
> 
> Has anyone successfully consumed a .NET/WCF webservice with SOAP 1.2 and
> wsHttpBinding using CXF 2.2.5?
> 
> Thanks...
> 
> 
> 
> ----- Original Message ----
> From: Daniel Kulp <[email protected]>
> To: [email protected]
> Cc: Coder One <[email protected]>
> Sent: Wed, January 13, 2010 7:56:11 AM
> Subject: Re: Consuming .NET Web Service - SOAP12
> 
> 
> I believe serviceName and endpointName are qnames.  Thus, they would need
> to 
> be defined as:
> 
> <jaxws:client id="calculatorServiceDotNet"
>   xmlns:ns="http://target.namespace.of.wsdl/........";
>   serviceName="ns:CalculatorService"
>   endpointName="ns:CalculatorServiceEndpoint"
>   address="http://acme.com/CalculatorService/CalculatorService.svc";
>   serviceClass="com.acme.dotnet.ICalculatorService">
> </jaxws:client>
> 
> 
> Dan
> 
> 
> On Wed January 13 2010 12:46:51 am Coder One wrote:
>> Real basic, stuff, but I could not get it to work...arghh... I think the
>>  problem may be due to the "soap12" deal.  How can I fix this?  
>>  
>> CXF 2.2.5, Spring 2.5.6
>>  
>> My Spring setup
>>  
>> <jaxws:client id="calculatorServiceDotNet"
>> serviceName="CalculatorService"
>> endpointName="CalculatorServiceEndpoint"
>> address="http://acme.com/CalculatorService/CalculatorService.svc";
>> serviceClass="com.acme.dotnet.ICalculatorService">
>> </jaxws:client>
>>  
>> Here it the WSDL snippet:  
>> <
>> - <wsdl:port
>> 
name="WSHttpBinding_ICalculatorService"binding="tns:WSHttpBinding_ICalcula
>> torService"> < - <wsa10:EndpointReference> <
>> -
>> 
<Identityxmlns="http://schemas.xmlsoap.org/ws/2006/02/addressingidentity";>
>>  <</</</</ wsdl:service> wsdl:port> wsa10:EndpointReference> Identity>
>>  Dns>localhost</Dns>
>> 
wsa10:Address>http://acme.com/CalculatorService/CalculatorService.svc</wsa
>> 10:Address> soap12:address
>>  location=http://acme.com/CalculatorService/CalculatorService.svc/>
>>  wsdl:service name="CalculatorService">
>> 
> 
> -- 
> Daniel Kulp
> [email protected]
> http://www.dankulp.com/blog
> 
> 
> 
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Why-cxf-use-XMLBindingFactory%2Cbut-not-HttpBindingFactory--tp27088418p27158023.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to