on 01-14-2013 11:13 PM
Dear All,
I have created a simple Web Service from a EJB Project inside NWDS 7.0 and able to successfully test my Webservice in wsnavigator. Inside the wsnavigator I can see the wsdl url ("https://<server>:<port>/UMEWebService/Config1?wsdl") and when I click on it I see the following xml.
<?xml version="1.0" encoding="UTF-8" ?>
<!--Generated by WSDLDefinitionsParser -->
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" name="UMEWebServiceWsd" targetNamespace="urn:UMEWebServiceWsd" xmlns:bns0="urn:UMEWebServiceWsd/Config1/document" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<wsdl:import location="https://server:port/UMEWebService/Config1/bindings?wsdl&style=document" namespace="urn:UMEWebServiceWsd/Config1/document" />
<wsdl:service name="UMEWebService">
<wsdl:port name="Config1Port_Document" binding="bns0:Config1Binding">
<soap:address location="https://server:port/UMEWebService/Config1?style=document" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
But this does not seem to me a proper wsdl xml to me. I am not sure whether this is the correct wsdl for my webservice.
Basically I want to expose my webservice so that it can be consumed by using the WSDL url by other applications. So if any body can help me with what exact steps to follow to expose my EJB as a proper web service so that it can be consumed via WSDL URL.
I am really not able to understand what is the next step.
Thanks and Regards
Ranadhir.
Hi Ranadhir,
You can use this WSDL. This not seem a proper wsdl because you cannot see the tags of wsdl like message, operation, bindong, service and so on.. right?
but there is a tag called wsdl:import, this tag is the key of this wsdl. It will import the right WSDL file.
If get the location on the wsdl:import you will see the wsdl that you are spected:
<wsdl:import location="https://server:port/UMEWebService/Config1/bindings?wsdl&style=document" namespace="urn:UMEWebServiceWsd/Config1/document" />
Best Regards
Marcos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
use soapUI to call it, if it works, it should be ok
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.