Five Stars

WSDL. Can not access data

I try Create WSDL via Talend:

 

if i use SOAP UI - it's work fine.

 

SOAP.JPG

But when i try use WSDL from another envoriment - There are problems with the extract of data:

In another envoriment i can't get XML. Only data.

 

I can't get value of complex type "root" and values from simple types.

Please help me fix schema in wsdl for obtain the results of data:

 

Code from another envoriment:

 

void run()
{
    wsdl.getMaxoptraSession10.BreadServicePortTypeClient getMaxoptraSession; // declare WSDL 
    wsdl.getMaxoptraSession10.NodeType NodeType; // declare node (complex type)
    wsdl.getMaxoptraSession10.ResponceType ResponceType; // declare node (complex type)
    str fld;
    ;
    // instance
    getMaxoptraSession = new  wsdl.getMaxoptraSession10.BreadServicePortTypeClient();
    // call web-service (it's worked)
    ResponceType = getMaxoptraSession.BreadServiceOperation(""); // try get <tns:BreadServiceOperationResponce xmlns:tns="http://www.talend.org/service/">
    NodeType = ResponceType.get_root(); // try get <root> ERROR HERE!
    fld = NodeType.get_sessionID(); // try get sessionID <>value
    return ;
}

 

My WSDL:

 

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="BreadService"
		xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
		xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
		xmlns:xsd="http://www.w3.org/2001/XMLSchema"
		xmlns:tns="http://www.talend.org/service/"
		targetNamespace="http://www.talend.org/service/">

	<wsdl:types>
		<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
			targetNamespace="http://www.talend.org/service/">
			<xsd:element name="BreadServiceOperationRequest">
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element name="root" type="xsd:string"></xsd:element>
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
			<xsd:element name="BreadServiceOperationResponse">
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element
							name="BreadServiceOperationResponce" type="tns:ResponceType">
						</xsd:element>
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
		
			<xsd:complexType name="NodeType">
				<xsd:sequence>
					<xsd:element name="sessionID" type="xsd:string"></xsd:element>
				</xsd:sequence>
			</xsd:complexType>
		
			<xsd:complexType name="ResponceType">
				<xsd:sequence>
					<xsd:element name="root" type="tns:NodeType"></xsd:element>
				</xsd:sequence>
			</xsd:complexType>
		</xsd:schema>
	</wsdl:types>

	<wsdl:message name="BreadServiceOperationRequest">
		<wsdl:part name="parameters" element="tns:BreadServiceOperationRequest"></wsdl:part>
	</wsdl:message>
	<wsdl:message name="BreadServiceOperationResponse">
		<wsdl:part name="parameters" element="tns:BreadServiceOperationResponse"></wsdl:part>
	</wsdl:message>

	<wsdl:portType name="BreadServicePortType">
		<wsdl:operation name="BreadServiceOperation">
			<wsdl:input message="tns:BreadServiceOperationRequest"></wsdl:input>
			<wsdl:output message="tns:BreadServiceOperationResponse"></wsdl:output>
		</wsdl:operation>
	</wsdl:portType>

	<wsdl:binding name="BreadServiceBinding" type="tns:BreadServicePortType">
		<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
		<wsdl:operation name="BreadServiceOperation">
			<soap:operation soapAction="http://www.talend.org/service/BreadServiceOperation" />
			<wsdl:input>
				<soap:body use="literal" />
			</wsdl:input>
			<wsdl:output>
				<soap:body use="literal" />
			</wsdl:output>
		</wsdl:operation>
	</wsdl:binding>

	<wsdl:service name="BreadService">
		<wsdl:port name="BreadServicePort" binding="tns:BreadServiceBinding">
			<soap:address location="http://192.168.3.173:8090/services/BreadService" />
		</wsdl:port>
	</wsdl:service>
</wsdl:definitions>

 

Tags (4)
1 ACCEPTED SOLUTION

Accepted Solutions
Moderator

Re: WSDL. Can not access data

Hello,

Could you please post your current job setting screenshots here? Which webservice component are you using?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
3 REPLIES
Moderator

Re: WSDL. Can not access data

Hello,

Could you please post your current job setting screenshots here? Which webservice component are you using?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Five Stars

Re: WSDL. Can not access data

job.JPG

I use tESBProviderRequest and tESBProviderResponce

Five Stars

Re: WSDL. Can not access data

12345.jpg

So probably it will be more understandable