On Tue, May 3, 2011 at 7:34 AM, Darrin Thompson <[email protected]> wrote:
> On Mon, May 2, 2011 at 10:16 PM, Daniel Kulp <[email protected]> wrote:
>> For wsdl first, you could add actions for the faults in the wsdl to
>> explicitly
>> set it. When not set, there are a couple algorithms for creating a default
>> Action for the faults and it could be that JAX-WS (which is what CXF would be
>> using) uses a slightly different algorithm than what .NET expects.
>> Explicitly setting it in the wsdl removes the ambiguity.
>>
>
> It's wsdl first. I'm importing the wsdl from WCF.
>
> When you say "set it in the wsdl," do you mean add something to the binding?
>
Here is the binding (still assuming that's what you mean) that I'm using:
<wsdl:binding name="WS2007HttpBinding_MySvc" type="i0:MySvc">
<wsp:PolicyReference URI="#WS2007HttpBinding_MySvc_policy" />
<soap12:binding
transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="MyOp">
<soap12:operation
soapAction="http://wstest4.visionsolutions.com/MySvc/MyOp"
style="document" />
<wsdl:input>
<wsp:PolicyReference
URI="#WS2007HttpBinding_MySvc_MyOp_Input_policy" />
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<wsp:PolicyReference
URI="#WS2007HttpBinding_MySvc_MyOp_output_policy" />
<soap12:body use="literal" />
</wsdl:output>
<wsdl:fault name="TestFaultFault">
<wsp:PolicyReference
URI="#WS2007HttpBinding_MySvc_MyOp_TestFaultFault_Fault" />
<soap12:fault name="TestFaultFault"
use="literal" />
</wsdl:fault>
</wsdl:operation>
<wsdl:operation name="MyOp2">
<soap12:operation
soapAction="http://wstest4.visionsolutions.com/MySvc/MyOp2"
style="document" />
<wsdl:input>
<wsp:PolicyReference
URI="#WS2007HttpBinding_MySvc_MyOp2_Input_policy" />
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<wsp:PolicyReference
URI="#WS2007HttpBinding_MySvc_MyOp2_output_policy" />
<soap12:body use="literal" />
</wsdl:output>
<wsdl:fault name="TestFaultFault">
<wsp:PolicyReference
URI="#WS2007HttpBinding_MySvc_MyOp2_TestFaultFault_Fault" />
<soap12:fault name="TestFaultFault"
use="literal" />
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
--
Darrin