You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by yulinxp <yu...@gmail.com> on 2008/01/14 16:27:44 UTC
.NET client Web Reference can't find correct method
I need to test .NET client to connect to CXF web service.
In VS, I add web reference, and input url.
When my method is: String sayHi(String text)
web reference can find the correct method: sayHi(textAs string) As string
But when my method is: String sayHi(String text, Profile info) throws
BusinessLogicException;
still web reference can only find: sayHi(textAs string) As string
It's not getting object Profile info and BusinessLogicException!
Below is my wsdl file. Is there anything wrong? When VS is finding the
correct method?
<?xml version="1.0" encoding="utf-8"?> <wsdl:definitions
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://
schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://spring.demo/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
name="HelloWorldService" targetNamespace="http://spring.demo/">
<wsdl:types>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
attributeFormDefault="unqualified"
elementFormDefault="unqualified" targetNamespace="http://
spring.demo/" xmlns:tns="http://spring.demo/">
<xs:element name="BusinessLogicFaultDetail" nillable="true"
type="tns:BusinessLogicFaultDetail"/>
<xs:element name="sayHi" nillable="true" type="tns:sayHi"/>
<xs:element name="sayHiResponse" nillable="true"
type="tns:sayHiResponse"/>
<xs:complexType name="sayHi">
<xs:sequence>
<xs:element minOccurs="0" name="text" type="xs:string"/>
<xs:element minOccurs="0" name="info" type="tns:profileInfo"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="profileInfo">
<xs:sequence>
<xs:element minOccurs="0" name="addressLine1" type="xs:string"/>
<xs:element minOccurs="0" name="addressLine2" type="xs:string"/>
<xs:element minOccurs="0" name="city" type="xs:string"/>
<xs:element minOccurs="0" name="companyName" type="xs:string"/>
<xs:element minOccurs="0" name="email" type="xs:string"/>
<xs:element minOccurs="0" name="fax" type="xs:string"/>
<xs:element minOccurs="0" name="firstName" type="xs:string"/>
<xs:element minOccurs="0" name="lastName" type="xs:string"/>
<xs:element minOccurs="0" name="middleName" type="xs:string"/>
<xs:element minOccurs="0" name="mobile" type="xs:string"/>
<xs:element minOccurs="0" name="phone" type="xs:string"/>
<xs:element minOccurs="0" name="state" type="xs:string"/>
<xs:element minOccurs="0" name="status" type="xs:string"/>
<xs:element minOccurs="0" name="zip" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="sayHiResponse">
<xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="BusinessLogicFaultDetail"/>
</xs:schema>
</wsdl:types>
<wsdl:message name="BusinessLogicException">
<wsdl:part element="tns:BusinessLogicFaultDetail"
name="BusinessLogicException">
</wsdl:part>
</wsdl:message>
<wsdl:message name="sayHiResponse">
<wsdl:part element="tns:sayHiResponse" name="parameters">
</wsdl:part>
</wsdl:message>
<wsdl:message name="sayHi">
<wsdl:part element="tns:sayHi" name="parameters">
</wsdl:part>
</wsdl:message>
<wsdl:portType name="HelloWorld">
<wsdl:operation name="sayHi">
<wsdl:input message="tns:sayHi" name="sayHi">
</wsdl:input>
<wsdl:output message="tns:sayHiResponse" name="sayHiResponse">
</wsdl:output>
<wsdl:fault message="tns:BusinessLogicException"
name="BusinessLogicException">
</wsdl:fault>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="HelloWorldServiceSoapBinding"
type="tns:HelloWorld">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="sayHi">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="sayHi">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="sayHiResponse">
<soap:body use="literal"/>
</wsdl:output>
<wsdl:fault name="BusinessLogicException">
<soap:fault name="BusinessLogicException" use="literal"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="HelloWorldService">
<wsdl:port binding="tns:HelloWorldServiceSoapBinding"
name="HelloWorldPort">
<soap:address
location="http://localhost:9090/spring_http/ws/ServerEndPoint"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
--
View this message in context: http://www.nabble.com/.NET-client-Web-Reference-can%27t-find-correct-method-tp14803683p14803683.html
Sent from the cxf-user mailing list archive at Nabble.com.