Hi

I put the stacjk trace ...The exception that i am getting is 
javax.xml.ws.WebServiceException: Unsupported endpoint address: 

Original web service is :
--------------------------------------
 <?xml version="1.0" encoding="UTF-8" ?> 
- <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns="http://schemas.xmlsoap.org/wsdl/";
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl";
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
xmlns:tns="http://BusinessSchoolService/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
targetNamespace="http://BusinessSchoolService/";>
- <wsdl:types>
- <xsd:schema attributeFormDefault="unqualified"
elementFormDefault="unqualified">
  <xsd:import namespace="http://BusinessSchoolService/";
schemaLocation="http://localhost:8081/web/BusinessSchoolService?xsd=1"; /> 
  </xsd:schema>
  </wsdl:types>
- <wsdl:message name="processProspectDetails">
  <wsdl:part name="parameters" element="tns:processProspectDetails" /> 
  </wsdl:message>
- <wsdl:message name="processProspectDetailsResponse">
  <wsdl:part name="parameters" element="tns:processProspectDetailsResponse"
/> 
  </wsdl:message>
- <wsdl:message name="Exception">
  <wsdl:part name="fault" element="tns:Exception" /> 
  </wsdl:message>
- <wsdl:portType name="SchoolProxyPortType">
- <wsdl:operation name="processProspectDetails">
  <wsdl:input message="tns:processProspectDetails"
wsaw:Action="http://BusinessSchoolService/BusinessSchool/processProspectDetailsRequest";
/> 
  <wsdl:output message="tns:processProspectDetailsResponse"
wsaw:Action="http://BusinessSchoolService/BusinessSchool/processProspectDetailsResponse";
/> 
  <wsdl:fault message="tns:Exception" name="Exception"
wsaw:Action="http://BusinessSchoolService/BusinessSchool/processProspectDetails/Fault/Exception";
/> 
  </wsdl:operation>
  </wsdl:portType>
- <wsdl:binding name="SchoolProxySoap11Binding"
type="tns:SchoolProxyPortType">
  <soap:binding transport="http://schemas.xmlsoap.org/soap/http";
style="document" /> 
- <wsdl:operation name="processProspectDetails">
  <soap:operation soapAction="" style="document" /> 
- <wsdl:input>
  <soap:body use="literal" /> 
  </wsdl:input>
- <wsdl:output>
  <soap:body use="literal" /> 
  </wsdl:output>
- <wsdl:fault name="Exception">
  <soap:fault use="literal" name="Exception" /> 
  </wsdl:fault>
  </wsdl:operation>
  </wsdl:binding>
- <wsdl:binding name="SchoolProxySoap12Binding"
type="tns:SchoolProxyPortType">
  <soap12:binding transport="http://schemas.xmlsoap.org/soap/http";
style="document" /> 
- <wsdl:operation name="processProspectDetails">
  <soap12:operation soapAction="" style="document" /> 
- <wsdl:input>
  <soap12:body use="literal" /> 
  </wsdl:input>
- <wsdl:output>
  <soap12:body use="literal" /> 
  </wsdl:output>
- <wsdl:fault name="Exception">
  <soap12:fault use="literal" name="Exception" /> 
  </wsdl:fault>
  </wsdl:operation>
  </wsdl:binding>
- <wsdl:binding name="SchoolProxyHttpBinding"
type="tns:SchoolProxyPortType">
  <http:binding verb="POST" /> 
- <wsdl:operation name="processProspectDetails">
  <http:operation location="SchoolProxy/processProspectDetails" /> 
- <wsdl:input>
  <mime:content type="text/xml" part="processProspectDetails" /> 
  </wsdl:input>
- <wsdl:output>
  <mime:content type="text/xml" part="processProspectDetails" /> 
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
- <wsdl:service name="SchoolProxy">
- <wsdl:port name="SchoolProxyHttpsSoap11Endpoint"
binding="tns:SchoolProxySoap11Binding">
  <soap:address
location="https://wkstn67:8243/soap/SchoolProxy.SchoolProxyHttpsSoap11Endpoint";
/> 
  </wsdl:port>
- <wsdl:port name="SchoolProxyHttpSoap11Endpoint"
binding="tns:SchoolProxySoap11Binding">
  <soap:address
location="http://wkstn67:8280/soap/SchoolProxy.SchoolProxyHttpSoap11Endpoint";
/> 
  </wsdl:port>
- <wsdl:port name="SchoolProxyHttpSoap12Endpoint"
binding="tns:SchoolProxySoap12Binding">
  <soap12:address
location="http://wkstn67:8280/soap/SchoolProxy.SchoolProxyHttpSoap12Endpoint";
/> 
  </wsdl:port>
- <wsdl:port name="SchoolProxyHttpsSoap12Endpoint"
binding="tns:SchoolProxySoap12Binding">
  <soap12:address
location="https://wkstn67:8243/soap/SchoolProxy.SchoolProxyHttpsSoap12Endpoint";
/> 
  </wsdl:port>
- <wsdl:port name="SchoolProxyHttpEndpoint"
binding="tns:SchoolProxyHttpBinding">
  <http:address
location="http://wkstn67:8280/soap/SchoolProxy.SchoolProxyHttpEndpoint"; /> 
  </wsdl:port>
- <wsdl:port name="SchoolProxyHttpsEndpoint"
binding="tns:SchoolProxyHttpBinding">
  <http:address
location="https://wkstn67:8243/soap/SchoolProxy.SchoolProxyHttpsEndpoint"; /> 
  </wsdl:port>
  </wsdl:service>
  </wsdl:definitions>
-----------------------------------------------------

Original web service WSDL:
------------------------------------------------------
<?xml version="1.0" encoding="UTF-8" ?> 
- <!--  Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version
is JAX-WS RI 2.1.3.1-hudson-417-SNAPSHOT. 
  --> 
- <!--  Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version
is JAX-WS RI 2.1.3.1-hudson-417-SNAPSHOT. 
  --> 
- <definitions
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:tns="http://BusinessSchoolService/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns="http://schemas.xmlsoap.org/wsdl/";
targetNamespace="http://BusinessSchoolService/";
name="BusinessSchoolService">
- <types>
- <xsd:schema>
  <xsd:import namespace="http://BusinessSchoolService/";
schemaLocation="http://localhost:8081/web/BusinessSchoolService?xsd=1"; /> 
  </xsd:schema>
  </types>
- <message name="processProspectDetails">
  <part name="parameters" element="tns:processProspectDetails" /> 
  </message>
- <message name="processProspectDetailsResponse">
  <part name="parameters" element="tns:processProspectDetailsResponse" /> 
  </message>
- <message name="Exception">
  <part name="fault" element="tns:Exception" /> 
  </message>
- <portType name="BusinessSchool">
- <operation name="processProspectDetails">
  <input message="tns:processProspectDetails" /> 
  <output message="tns:processProspectDetailsResponse" /> 
  <fault message="tns:Exception" name="Exception" /> 
  </operation>
  </portType>
- <binding name="BusinessSchoolPortBinding" type="tns:BusinessSchool">
  <soap:binding transport="http://schemas.xmlsoap.org/soap/http";
style="document" /> 
- <operation name="processProspectDetails">
  <soap:operation soapAction="" /> 
- <input>
  <soap:body use="literal" /> 
  </input>
- <output>
  <soap:body use="literal" /> 
  </output>
- <fault name="Exception">
  <soap:fault name="Exception" use="literal" /> 
  </fault>
  </operation>
  </binding>
- <service name="BusinessSchoolService">
- <port name="BusinessSchoolPort" binding="tns:BusinessSchoolPortBinding">
  <soap:address location="http://localhost:8081/web/BusinessSchoolService";
/> 
  </port>
  </service>
  </definitions>
---------------------------------------------------------------
The problem is that my proxy web service does not accept xml document as a
input..
So how exactly should i structure my requeST..

Regards
Abhishek


Asankha C. Perera wrote:
> 
> Hi Abhishek
>> No i am not getting any exception.I added the proxy web service into my
>> application by giving the WSDL path..
>>
>> Then i wrote this piece of code to invoke it.
>>       try { // Call Web Service Operation
>>             businessschoolservice.SchoolProxy service = new
>> businessschoolservice.SchoolProxy();
>>             businessschoolservice.SchoolProxyPortType port =
>> service.getSchoolProxyHttpsEndpoint();
>>             // TODO initialize WS operation arguments here
>>             java.lang.String processstring = "";
>>             // TODO process result here
>>             java.lang.String result =
>> port.processProspectDetails(xmlresult);
>>             System.out.println("Result = " + result);
>>         } catch (Exception ex) {
>>             // TODO handle custom exceptions here
>>         }
>>
>> When the debugger reaches this particular line of code :
>>   java.lang.String result = port.processProspectDetails(xmlresult);
>>
>> it goes out of the loop without throwing nay exception.
> Hmm.. your catch block is empty, but I would expect an exception if 
> something is going wrong..
>> I was able to get the result when i was invoking a normal web service.The
>> parameter that i am
>> sending (xmlresult) is a normal string but in xml format e.g
>> "<?xml version="1.0" encoding="UTF-8"?>
>> <prospect>
>>     <Name>abhi</Name>
>>     <Age>23</Age>
>>     <Address>exeter</Address>
>>     <SSN>2345</SSN>
>>     <Program>Law</Program>
>> </prospect>
>> "
>>   
> This is not good.. you should not be sending an XML payload in a SOAP 
> message as a String! and your payload even has the XML declaration! This 
> is very poor design and could cause many problems
>> getprospectdetails is the method that i am invoking... I saw in some
>> other
>> post that some Soap Header is missing in such cases..(if that is the case
>> how to resolve it.)
>> and the wsdl of actual web service and proxy web service is also
>> different
>> as in proxy web service.in proxy web service:
>>     <wsdl:service name="SchoolProxy">
>>         <wsdl:port name="SchoolProxyHttpsSoap11Endpoint"
>> binding="tns:SchoolProxySoap11Binding">
>>             <soap:address
>> location="https://wkstn67:8243/soap/SchoolProxy.SchoolProxyHttpsSoap11Endpoint"/>
>>         </wsdl:port>
>>         <wsdl:port name="SchoolProxyHttpSoap11Endpoint"
>> binding="tns:SchoolProxySoap11Binding">
>>             <soap:address
>> location="http://wkstn67:8280/soap/SchoolProxy.SchoolProxyHttpSoap11Endpoint"/>
>>         </wsdl:port>
>>         <wsdl:port name="SchoolProxyHttpSoap12Endpoint"
>> binding="tns:SchoolProxySoap12Binding">
>>             <soap12:address
>> location="http://wkstn67:8280/soap/SchoolProxy.SchoolProxyHttpSoap12Endpoint"/>
>>         </wsdl:port>
>>         <wsdl:port name="SchoolProxyHttpsSoap12Endpoint"
>> binding="tns:SchoolProxySoap12Binding">
>>             <soap12:address
>> location="https://wkstn67:8243/soap/SchoolProxy.SchoolProxyHttpsSoap12Endpoint"/>
>>         </wsdl:port>
>>         <wsdl:port name="SchoolProxyHttpEndpoint"
>> binding="tns:SchoolProxyHttpBinding">
>>             <http:address
>> location="http://wkstn67:8280/soap/SchoolProxy.SchoolProxyHttpEndpoint"/>
>>         </wsdl:port>
>>         <wsdl:port name="SchoolProxyHttpsEndpoint"
>> binding="tns:SchoolProxyHttpBinding">
>>             <http:address
>> location="https://wkstn67:8243/soap/SchoolProxy.SchoolProxyHttpsEndpoint"/>
>>         </wsdl:port>
>>     </wsdl:service>
>>
>> there are so many ports..
>> but in actual web service there is only one port.
>>   
> Can you attach the WSDL of the original service?
>> If i can not send my parameter as a string..Should i send it as a xml
>> doc..
>>   
> Yes, please send XML data as XML if the service is also in your control
>> One more doubt i have  how the proxy service recognize the input
>> parameters..
>>   
> Not sure I understand this.. but the proxy service merely passes the 
> request to the actual service, and may or may not look at the payload - 
> depending on the configuration you specify
> 
> cheers
> asankha
> 
> -- 
> Asankha C. Perera
> http://adroitlogic.org
> 
> http://esbmagic.blogspot.com
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Invoking-Synapse-from-Non-Axis-2-Client-tp21970007p21992914.html
Sent from the Synapse - User mailing list archive at Nabble.com.

Reply via email to