Forum Discussion

chenny's avatar
14 years ago

Merging 2 WSDLs / Bindings into one.

I'm new on using SOAPUI, i just can't seem to figure out how i would do this in SOAPUI. This is what i am trying to do:

First I made a new project and added two existing WSDL URLs which have already been set up before hand:



After the two WSDLs were added, how i have two bindings i can see on screen:



Now My question is how would i merge or combine these two bindings into one binding, or one WSDL? I think i am missing somthing quite obvious in soapUI, maybe i going about merging these in the wrong way.

Any tips or advice or anything would very much appreciated.

Some background Info (dunno if this will help):
I'm using web logic server to host these web services.

The two WSDLs code:
Wsdl 1:

<!-- Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.2.6hudson-86 svn-revision#12773. -->
<!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.2.6hudson-86 svn-revision#12773. -->
<definitions xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://empws/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://empws/" name="NewWebService">
<types>
<xsd:schema>
<xsd:import namespace="http://empws/" schemaLocation="http://localhost:7001/NewWebService/NewWebService?xsd=1"/>
</xsd:schema>
</types>
<message name="insert">
<part name="parameters" element="tns:insert"/>
</message>
<message name="insertResponse">
<part name="parameters" element="tns:insertResponse"/>
</message>
<portType name="NewWebService">
<operation name="insert">
<input wsam:Action="http://empws/NewWebService/insertRequest" message="tns:insert"/>
<output wsam:Action="http://empws/NewWebService/insertResponse" message="tns:insertResponse"/>
</operation>
</portType>
<binding name="NewWebServicePortBinding" type="tns:NewWebService">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<operation name="insert">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="NewWebService">
<port name="NewWebServicePort" binding="tns:NewWebServicePortBinding">
<soap:address location="http://localhost:7001/NewWebService/NewWebService"/>
</port>
</service>
</definitions>


Wsdl 2:


<!-- Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.2.6hudson-86 svn-revision#12773. -->
<!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.2.6hudson-86 svn-revision#12773. -->
<definitions xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://conws/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://conws/" name="tests">
<types>
<xsd:schema>
<xsd:import namespace="http://conws/" schemaLocation="http://localhost:7001/contractorWS/tests?xsd=1"/>
</xsd:schema>
</types>
<message name="query">
<part name="parameters" element="tns:query"/>
</message>
<message name="queryResponse">
<part name="parameters" element="tns:queryResponse"/>
</message>
<portType name="tests">
<operation name="query">
<input wsam:Action="http://conws/tests/queryRequest" message="tns:query"/>
<output wsam:Action="http://conws/tests/queryResponse" message="tns:queryResponse"/>
</operation>
</portType>
<binding name="testsPortBinding" type="tns:tests">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<operation name="query">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="tests">
<port name="testsPort" binding="tns:testsPortBinding">
<soap:address location="http://localhost:7001/contractorWS/tests"/>
</port>
</service>
</definitions>
No RepliesBe the first to reply