Need help with accessing XML result.


G

GotSunJavaNow

I don't work with web services very much and I'm considered dangerous
when programming with java. So some of my nomenclature maybe a little
off.

The issue I'm having is after I import the wsdl into Netbeans 6.1 and
I successfully access and consume the web service using code similar
to what is given below, there doesn't seem to be anyway to access the
POEPLECheckSum in the ResponseHeader element. Does anyone have any
ideas on how to solve this problem?

The Code...
try { // Call Web Service Operation
peoplews.PEOPLEInterface service = new
peoplews.PEOPLEInterface();
peoplews.PEOPLEInterfaceSoap port =
service.getPEOPLEInterfaceSoap();
// TODO initialize WS operation arguments here
peoplews.GetPEOPLEDataWithoutFlagOffice parameters = new
peoplews.GetPEOPLEDataWithoutFlagOffice();
// TODO process result here
// fill in the parameters..... <snip>.....

peoplews.GetPEOPLEDataWithoutFlagOfficeResponse result =
port.getPEOPLEDataData(parameters);
System.out.println("Result = "+result);

} catch (Exception ex) {
// TODO handle custom exceptions here
}

The WSDL:
<?xml version="1.0" encoding="utf-8" ?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://
PEOPLEWS/" xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
targetNamespace="http://PEOPLEWS/" xmlns:wsdl="http://
schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="http://
PEOPLEWS/">
<s:element name="getPEOPLEDataWithoutFlagOffice">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="FromDateTime"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ToDateTime"
type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="getPEOPLEDataWithoutFlagOfficeResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="getPEOPLEDataWithoutFlagOfficeResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="ResponseHeader" type="tns:ResponseHeader" />
<s:complexType name="ResponseHeader">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="PEOPLECheckSum"
type="s:string" />
</s:sequence>
<s:anyAttribute />
</s:complexType>
<s:element name="getPEOPLEDataDataWithFlag">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="FromDateTime"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ToDateTime"
type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="bReturnAlreadySent"
type="s:boolean" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="getPEOPLEDataDataWithFlagResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="getPEOPLEDataDataWithFlagResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="getPEOPLEDataDataWithOffice">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="FromDateTime"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ToDateTime"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="sOfficeList"
type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="getPEOPLEDataDataWithOfficeResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="getPEOPLEDataDataWithOfficeResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="getPEOPLEDataDataWithFlagOffice">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="FromDateTime"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ToDateTime"
type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="bReturnAlreadySent"
type="s:boolean" />
<s:element minOccurs="0" maxOccurs="1" name="sOfficeList"
type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="getPEOPLEDataDataWithFlagOfficeResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="getPEOPLEDataDataWithFlagOfficeResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
</s:schema>
</wsdl:types>
<wsdl:message name="getPEOPLEDataWithoutFlagOfficeSoapIn">
<wsdl:part name="parameters"
element="tns:getPEOPLEDataWithoutFlagOffice" />
</wsdl:message>
<wsdl:message name="getPEOPLEDataWithoutFlagOfficeSoapOut">
<wsdl:part name="parameters"
element="tns:getPEOPLEDataWithoutFlagOfficeResponse" />
</wsdl:message>
<wsdl:message name="getPEOPLEDataWithoutFlagOfficeResponseHeader">
<wsdl:part name="ResponseHeader" element="tns:ResponseHeader" />
</wsdl:message>
<wsdl:message name="getPEOPLEDataDataWithFlagSoapIn">
<wsdl:part name="parameters"
element="tns:getPEOPLEDataDataWithFlag" />
</wsdl:message>
<wsdl:message name="getPEOPLEDataDataWithFlagSoapOut">
<wsdl:part name="parameters"
element="tns:getPEOPLEDataDataWithFlagResponse" />
</wsdl:message>
<wsdl:message name="getPEOPLEDataDataWithFlagResponseHeader">
<wsdl:part name="ResponseHeader" element="tns:ResponseHeader" />
</wsdl:message>
<wsdl:message name="getPEOPLEDataDataWithOfficeSoapIn">
<wsdl:part name="parameters"
element="tns:getPEOPLEDataDataWithOffice" />
</wsdl:message>
<wsdl:message name="getPEOPLEDataDataWithOfficeSoapOut">
<wsdl:part name="parameters"
element="tns:getPEOPLEDataDataWithOfficeResponse" />
</wsdl:message>
<wsdl:message name="getPEOPLEDataDataWithOfficeResponseHeader">
<wsdl:part name="ResponseHeader" element="tns:ResponseHeader" />
</wsdl:message>
<wsdl:message name="getPEOPLEDataDataWithFlagOfficeSoapIn">
<wsdl:part name="parameters"
element="tns:getPEOPLEDataDataWithFlagOffice" />
</wsdl:message>
<wsdl:message name="getPEOPLEDataDataWithFlagOfficeSoapOut">
<wsdl:part name="parameters"
element="tns:getPEOPLEDataDataWithFlagOfficeResponse" />
</wsdl:message>
<wsdl:message name="getPEOPLEDataDataWithFlagOfficeResponseHeader">
<wsdl:part name="ResponseHeader" element="tns:ResponseHeader" />
</wsdl:message>
<wsdl:portType name="PEOPLEInterfaceSoap">
<wsdl:eek:peration name="getPEOPLEDataData">
<wsdl:input name="getPEOPLEDataWithoutFlagOffice"
message="tns:getPEOPLEDataWithoutFlagOfficeSoapIn" />
<wsdl:eek:utput name="getPEOPLEDataWithoutFlagOffice"
message="tns:getPEOPLEDataWithoutFlagOfficeSoapOut" />
</wsdl:eek:peration>
<wsdl:eek:peration name="getPEOPLEDataData">
<wsdl:input name="getPEOPLEDataDataWithFlag"
message="tns:getPEOPLEDataDataWithFlagSoapIn" />
<wsdl:eek:utput name="getPEOPLEDataDataWithFlag"
message="tns:getPEOPLEDataDataWithFlagSoapOut" />
</wsdl:eek:peration>
<wsdl:eek:peration name="getPEOPLEDataData">
<wsdl:input name="getPEOPLEDataDataWithOffice"
message="tns:getPEOPLEDataDataWithOfficeSoapIn" />
<wsdl:eek:utput name="getPEOPLEDataDataWithOffice"
message="tns:getPEOPLEDataDataWithOfficeSoapOut" />
</wsdl:eek:peration>
<wsdl:eek:peration name="getPEOPLEDataData">
<wsdl:input name="getPEOPLEDataDataWithFlagOffice"
message="tns:getPEOPLEDataDataWithFlagOfficeSoapIn" />
<wsdl:eek:utput name="getPEOPLEDataDataWithFlagOffice"
message="tns:getPEOPLEDataDataWithFlagOfficeSoapOut" />
</wsdl:eek:peration>
</wsdl:portType>
<wsdl:binding name="PEOPLEInterfaceSoap"
type="tns:pEOPLEInterfaceSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:eek:peration name="getPEOPLEDataData">
<soap:eek:peration soapAction="http://PEOPLEWS/
getPEOPLEDataWithoutFlagOffice" style="document" />
<wsdl:input name="getPEOPLEDataWithoutFlagOffice">
<soap:body use="literal" />
</wsdl:input>
<wsdl:eek:utput name="getPEOPLEDataWithoutFlagOffice">
<soap:body use="literal" />
<soap:header
message="tns:getPEOPLEDataWithoutFlagOfficeResponseHeader"
part="ResponseHeader" use="literal" />
</wsdl:eek:utput>
</wsdl:eek:peration>
<wsdl:eek:peration name="getPEOPLEDataData">
<soap:eek:peration soapAction="http://PEOPLEWS/
getPEOPLEDataDataWithFlag" style="document" />
<wsdl:input name="getPEOPLEDataDataWithFlag">
<soap:body use="literal" />
</wsdl:input>
<wsdl:eek:utput name="getPEOPLEDataDataWithFlag">
<soap:body use="literal" />
<soap:header message="tns:getPEOPLEDataDataWithFlagResponseHeader"
part="ResponseHeader" use="literal" />
</wsdl:eek:utput>
</wsdl:eek:peration>
<wsdl:eek:peration name="getPEOPLEDataData">
<soap:eek:peration soapAction="http://PEOPLEWS/
getPEOPLEDataDataWithOffice" style="document" />
<wsdl:input name="getPEOPLEDataDataWithOffice">
<soap:body use="literal" />
</wsdl:input>
<wsdl:eek:utput name="getPEOPLEDataDataWithOffice">
<soap:body use="literal" />
<soap:header message="tns:getPEOPLEDataDataWithOfficeResponseHeader"
part="ResponseHeader" use="literal" />
</wsdl:eek:utput>
</wsdl:eek:peration>
<wsdl:eek:peration name="getPEOPLEDataData">
<soap:eek:peration soapAction="http://PEOPLEWS/
getPEOPLEDataDataWithFlagOffice" style="document" />
<wsdl:input name="getPEOPLEDataDataWithFlagOffice">
<soap:body use="literal" />
</wsdl:input>
<wsdl:eek:utput name="getPEOPLEDataDataWithFlagOffice">
<soap:body use="literal" />
<soap:header
message="tns:getPEOPLEDataDataWithFlagOfficeResponseHeader"
part="ResponseHeader" use="literal" />
</wsdl:eek:utput>
</wsdl:eek:peration>
</wsdl:binding>
<wsdl:binding name="PEOPLEInterfaceSoap12"
type="tns:pEOPLEInterfaceSoap">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:eek:peration name="getPEOPLEDataData">
<soap12:eek:peration soapAction="http://PEOPLEWS/
getPEOPLEDataWithoutFlagOffice" style="document" />
<wsdl:input name="getPEOPLEDataWithoutFlagOffice">
<soap12:body use="literal" />
</wsdl:input>
<wsdl:eek:utput name="getPEOPLEDataWithoutFlagOffice">
<soap12:body use="literal" />
<soap12:header
message="tns:getPEOPLEDataWithoutFlagOfficeResponseHeader"
part="ResponseHeader" use="literal" />
</wsdl:eek:utput>
</wsdl:eek:peration>
<wsdl:eek:peration name="getPEOPLEDataData">
<soap12:eek:peration soapAction="http://PEOPLEWS/
getPEOPLEDataDataWithFlag" style="document" />
<wsdl:input name="getPEOPLEDataDataWithFlag">
<soap12:body use="literal" />
</wsdl:input>
<wsdl:eek:utput name="getPEOPLEDataDataWithFlag">
<soap12:body use="literal" />
<soap12:header message="tns:getPEOPLEDataDataWithFlagResponseHeader"
part="ResponseHeader" use="literal" />
</wsdl:eek:utput>
</wsdl:eek:peration>
<wsdl:eek:peration name="getPEOPLEDataData">
<soap12:eek:peration soapAction="http://PEOPLEWS/
getPEOPLEDataDataWithOffice" style="document" />
<wsdl:input name="getPEOPLEDataDataWithOffice">
<soap12:body use="literal" />
</wsdl:input>
<wsdl:eek:utput name="getPEOPLEDataDataWithOffice">
<soap12:body use="literal" />
<soap12:header
message="tns:getPEOPLEDataDataWithOfficeResponseHeader"
part="ResponseHeader" use="literal" />
</wsdl:eek:utput>
</wsdl:eek:peration>
<wsdl:eek:peration name="getPEOPLEDataData">
<soap12:eek:peration soapAction="http://PEOPLEWS/
getPEOPLEDataDataWithFlagOffice" style="document" />
<wsdl:input name="getPEOPLEDataDataWithFlagOffice">
<soap12:body use="literal" />
</wsdl:input>
<wsdl:eek:utput name="getPEOPLEDataDataWithFlagOffice">
<soap12:body use="literal" />
<soap12:header
message="tns:getPEOPLEDataDataWithFlagOfficeResponseHeader"
part="ResponseHeader" use="literal" />
</wsdl:eek:utput>
</wsdl:eek:peration>
</wsdl:binding>
<wsdl:service name="PEOPLEInterface">
<wsdl:port name="PEOPLEInterfaceSoap"
binding="tns:pEOPLEInterfaceSoap">
<soap:address location="http://localhost/PEOPLEWS/
PEOPLEInterface.asmx" />
</wsdl:port>
<wsdl:port name="PEOPLEInterfaceSoap12"
binding="tns:pEOPLEInterfaceSoap12">
<soap12:address location="http://localhost/PEOPLEWS/
PEOPLEInterface.asmx" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top