Here are the details. Thanks for your help.
private static final QName SERVICE_NAME = new QName("DeployedServiceNS",
"DeployedService");
########################################
<?xml version="1.0" ?>
<wsdl:definitions targetNamespace="DeployedServiceNS"
xmlns:messages="DeployedServiceNS2"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="DeployedServiceNS"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://schemas.xmlsoap.org/wsdl/
http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<xs:schema attributeFormDefault="unqualified"
elementFormDefault="unqualified" targetNamespace="DeployedServiceNS"
version="1.0.0" xmlns:messages="DeployedServiceNS2" xmlns:soap="
http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="DeployedService"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="
http://www.w3.org/2001/XMLSchema" xmlns:xsd="
http://www.w3.org/2001/XMLSchema" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">
<xs:import namespace="DeployedServiceNS2"
schemaLocation="DeployedServiceNS2.xsd"/>
</xs:schema>
</wsdl:types>
<wsdl:message name="RetrieveRequest">
<wsdl:part element="messages:RetrieveRequest" name="RetrieveRequest">
</wsdl:part>
</wsdl:message>
<wsdl:message name="RetrieveResponse">
<wsdl:part element="messages:RetrieveResponse" name="RetrieveResponse">
</wsdl:part>
</wsdl:message>
<wsdl:portType name="SVC">
<wsdl:operation name="retrieve">
<wsdl:input message="tns:RetrieveRequest">
</wsdl:input>
<wsdl:output message="tns:RetrieveResponse">
</wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="DeployedServiceSOAP" type="tns:SVC">
<soap:binding style="document" transport="
http://schemas.xmlsoap.org/soap/http"></soap:binding>
<wsdl:operation name="retrieveXXX">
<soap:operation
soapAction="DeployedServiceNS/retrieveXXX"></soap:operation>
<wsdl:input>
<soap:body parts="RetrieveRequest" use="literal"></soap:body>
</wsdl:input>
<wsdl:output>
<soap:body parts="RetrieveResponse" use="literal"></soap:body>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="DeployedService">
<wsdl:port binding="tns:DeployedServiceSOAP" name="DeployedService">
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
On Fri, Jul 26, 2013 at 12:36 AM, Freeman Fang <[email protected]>wrote:
> Hi,
>
> What's your wsdl looks like, and what's the SERVICE_NAME you specified
> here?
> -------------
> Freeman(Yue) Fang
>
> Red Hat, Inc.
> FuseSource is now part of Red Hat
> Web: http://fusesource.com | http://www.redhat.com/
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.com
> http://blog.sina.com.cn/u/1473905042
> weibo: @Freeman小屋
>
>
>
> On 2013-7-26, at 下午2:41, Sachin Nikam wrote:
>
> > I am new to apache-cxf 2.7.5 and using wsdl2java tool to generate client
> > code based on a wsdl.
> >
> > Here is a snippet of my code
> >
> > URL wsdlURL = new URL("DeployedServiceURL");
> > DeployedService ss = new DeployedService(wsdlURL, SERVICE_NAME);
> > SVC port = ss.getDeployedService();
> > RetrieveResponse retrieve _return =
> port.retrieve(retrieveRequest);
> >
> > When I invoke the method on the port, I get the following exception
> > ################
> > java.io.IOException: java.net.URISyntaxException: Invalid address.
> Endpoint
> > address cannot be null. at index 0: <null>
> > ###############
> >
> > This error is similar to the one mentioned here
> >
> http://stackoverflow.com/questions/3007793/cxf-client-webservice-ping-has-thrown-exception-could-not-send-message-invalid?rq=1
> >
> > but the solution here is not relevant for me.
> > Can anybody point me to the right direction?
>
>