Correct WSDL

Can someone please help me correct my WSDL.

When I generate the skeletons for this WSDLs using Eclipse, I get errors in the code.
<?xml version="1.0" encoding="utf-8"?>
	
<definitions name="ResumeService"
   			targetNamespace="http://www.examples.com/wsdl/ResumeService.wsdl"
   			xmlns="http://schemas.xmlsoap.org/wsdl/"
   			xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
   			xmlns:tns="http://www.examples.com/wsdl/ResumeService.wsdl"
   			xmlns:xsd="http://www.w3.org/2001/XMLSchema"
   			xmlns:xs="http://www.w3.org/2001/XMLSchema" 
   			xmlns:ns="http://quickstart.samples/xsd" >
	
	<types>
		<xs:schema attributeFormDefault="qualified"
			elementFormDefault="qualified" targetNamespace="http://quickstart.samples/xsd">
			<xs:element name="employee">
				<xs:complexType>
					<xs:sequence>
						<xs:element minOccurs="0" name="empName" type="ns:empNameType" />
						<xs:element minOccurs="0" name="empDetails" type="ns:empDetailsType" />
					</xs:sequence>
				</xs:complexType>
			</xs:element>
			<xs:complexType name="empNameType">
				<xs:sequence>
					<xs:element minOccurs="0" name="firstName" type="xs:string" />
					<xs:element minOccurs="0" name="lastName" type="xs:string" />
				</xs:sequence>
			</xs:complexType>
			<xs:complexType name="empDetailsType">
				<xs:sequence>
					<xs:element minOccurs="0" name="address" type="xs:string" />
					<xs:element minOccurs="0" name="country" type="xs:string" />
				</xs:sequence>
			</xs:complexType>
		</xs:schema>
	</types>
	<message name="updateResumeRequest">
		<part name="employee" element="ns:employee" />
	</message>
	<message name="updateResumeResponse">
		<part name="resumeId" element="xs:string" />
	</message>
	<portType name="resumePortType">
		<operation name="updateResume">
			<input message="tns:updateResumeRequest" />
			<output message="tns:updateResumeResponse" />
		</operation>
	</portType>
	<binding name="ResumeServiceBinding" type="tns:resumePortType">
		<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
		<operation name="updateResume">
			<soap:operation soapAction="urn:updateResume" style="document" />
			<input>
				<soap:body use="literal" />
			</input>
			<output>
				<soap:body use="literal" />
			</output>
		</operation>
	</binding>
	<service name="ResumeService">
		<port name="ResumeServiceHttpSoapEndpoint" binding="tns:ResumeServiceBinding">
			<soap:address location="http://localhost:8080/axis2/services/ResumeService" />
		</port>
	</service>
	
	
	
</definitions>

Open in new window

ank9Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
Let do one thing lets create it from start its really going to be easy,

Just tell me the following,

what are the operations you are expecting?

what parameters and what version of SOAP you want to use soap 1.1 will do?
0
ank9Author Commented:
Thanks for the quick response.
I want only 2 operations
1. getResumeId - given the user first name and last name as input, need to return the resume id
2. getResumeDetails: given the resume id, need to return the resume details (like first name, last name, address etc.)
SOAP 1.1 will do. Actually there is no restriction regarding the SOAP version. Any version which enables me to write services using Axis2 is fine with me.
 
Thank you
0
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
what all details you wanna return in getResumeDetails any way you can change at the wsdl at later point also. If you can tell me right now itslef.
0
Bootstrap 4: Exploring New Features

Learn how to use and navigate the new features included in Bootstrap 4, the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first websites.

ank9Author Commented:
Thank you.
First name, last name and address
0
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
i have created address as a seperate complex type you can add what all elements you want to add to it like street1, steet2, zipcode what ever.

Here is your WSDL:

Try and let me know if you face any problems, will comment tomorrow, if you face any errors it's already late here :)
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
	xmlns:tns="http://www.examples.com/wsdl/ResumeService.wsdl" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
	xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ResumeService"
	targetNamespace="http://www.examples.com/wsdl/ResumeService.wsdl">
	<wsdl:types>
		<xsd:schema targetNamespace="http://www.examples.com/wsdl/ResumeService.wsdl">
			<xsd:element name="getResumeId">
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element name="firstName" type="xsd:string" />
						<xsd:element name="lastName" type="xsd:string"></xsd:element>
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
			<xsd:element name="getResumeIdResponse">
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element name="resumeId" type="xsd:string" />
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
			<xsd:element name="getResumeDetails">
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element name="resumeId" type="xsd:string"></xsd:element>
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
			<xsd:element name="getResumeDetailsResponse">
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element name="firstName" type="xsd:string"></xsd:element>
						<xsd:element name="lastName" type="xsd:string"></xsd:element>
						<xsd:element name="address" type="tns:addressType"></xsd:element>
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
    
            <xsd:complexType name="addressType"></xsd:complexType>
		</xsd:schema>
	</wsdl:types>
	<wsdl:message name="getResumeIdRequest">
		<wsdl:part element="tns:getResumeId" name="parameters" />
	</wsdl:message>
	<wsdl:message name="getResumeIdResponse">
		<wsdl:part element="tns:getResumeIdResponse" name="parameters" />
	</wsdl:message>
	<wsdl:message name="getResumeDetailsRequest">
		<wsdl:part name="parameters" element="tns:getResumeDetails"></wsdl:part>
	</wsdl:message>
	<wsdl:message name="getResumeDetailsResponse">
		<wsdl:part name="parameters" element="tns:getResumeDetailsResponse"></wsdl:part>
	</wsdl:message>
	<wsdl:portType name="ResumeService">
		<wsdl:operation name="getResumeId">
			<wsdl:input message="tns:getResumeIdRequest" />
			<wsdl:output message="tns:getResumeIdResponse" />
		</wsdl:operation>
		<wsdl:operation name="getResumeDetails">
			<wsdl:input message="tns:getResumeDetailsRequest"></wsdl:input>
			<wsdl:output message="tns:getResumeDetailsResponse"></wsdl:output>
		</wsdl:operation>
	</wsdl:portType>
	<wsdl:binding name="ResumeServiceSOAP" type="tns:ResumeService">

		<soap:binding style="document"
			transport="http://schemas.xmlsoap.org/soap/http" />
		<wsdl:operation name="getResumeId">

			<soap:operation
				soapAction="http://www.examples.com/wsdl/ResumeService.wsdl/getResumeId" />
			<wsdl:input>

				<soap:body use="literal" />
			</wsdl:input>
			<wsdl:output>

				<soap:body use="literal" />
			</wsdl:output>
		</wsdl:operation>
		<wsdl:operation name="getResumeDetails">
			<soap:operation
				soapAction="http://www.examples.com/wsdl/ResumeService.wsdl/getResumeDetails" />
			<wsdl:input>
				<soap:body use="literal" />
			</wsdl:input>
			<wsdl:output>
				<soap:body use="literal" />
			</wsdl:output>
		</wsdl:operation>
	</wsdl:binding>
	<wsdl:service name="ResumeService">
		<wsdl:port binding="tns:ResumeServiceSOAP" name="ResumeServiceSOAP">
			<soap:address location="http://www.example.org/" />
		</wsdl:port>
	</wsdl:service>
</wsdl:definitions>

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ank9Author Commented:
Thanks a lot for your help.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.