Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What do I load ?

Status
Not open for further replies.

TonyG

Programmer
Nov 6, 2000
79
US
Hello.

I'm trying to develop a web comsuming client using VS.NET 2003(VB), .NET
Framework 1.1.4322, ASP.NET 1.1.4322, WSE2.0 on a WinXP Pro Sp2 comuter.

If i comsume this web service:

and do this operation: RetrieveArchivedTrips

using: Dim strDate As Date = "2006-04-01"
Dim endDate As Date = "2006-04-28"
proxy.RetrieveArchivedTrips(strDate, endDate)

What do I load when i use the following statements in my program:
Dim doc as XmlDocument = new XmlDocument()
doc.Load()

Any help would be gratefully appreciated.

Thanks,
Tony
 
What is in that page? I cannot trust that link, a priori.
 
Hello Tsuji.

I'm not sure of what it is you cannot trust.

What is a priori ?

Thanks,
Tony
 
>What is a priori ?
That's I cannot give accept to unsafe site with certification having problem alert. Nothing personal. What about if you can simply post what essentially the link would mean to us reader so that people here can help with a digested version of the question?
 
I'm not sure of what you are asking. Do you want me to post the wsdl ? or maybe the soap request information ?

I'm still not sure of why you cannot visit that site. I go there all the time and never had any kind of a certificate notice popping up.

Thanks,
Tony
 
Tony,

Their server-side certificate has some problems in its domain name. Your browser's settings may allow mismiatched domain names.

tsuji is not the only one confused. I don't really understand your problem/issue either. Try to restate your request. I can only guess that you have imported the WSDL into your ASP .NET project, correct? Did that seem to work okay? What does the object look like? Exactly what problem do you encounter?

Posting the WSDL might help. Posting the SOAP envelope might help. It all depends, but I know a better problem description will help.

Tom Morrison
 
I'm sorry Tom. I'll try to give whatever information i can to explain what i want to do.

I am trying to use the data returned by this function which is has a type of system.xml.xmlnode and was created by the VS.NET Add web service function as you can see:

'<remarks/>
<System.Web.Services.Protocols.SoapDocumentMethodAttribute(" RequestNamespace:=" ResponseNamespace:=" Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)> _
Public Function RetrieveArchivedTrips(ByVal StartDate As Date, ByVal EndDate As Date) As System.Xml.XmlNode
Dim results() As Object = Me.Invoke("RetrieveArchivedTrips", New Object() {StartDate, EndDate})
Return CType(results(0),System.Xml.XmlNode)
End Function

I will put whatever i can (WSDL, SOAP) at the end of this reply. I am trying to determine how to display the data returned by the "RetrieveArchivedTrips" function. I feel that i need to know what goes between the braces "()" of my doc.Load() statement. The "proxy.RetrieveArchivedTrips (strDate, endDate)" statement works OK.

I just need to know how to get the data and start working with it. Since the data is of a type that i am not familiar with. I have worked with other consuming programs that use datatables and i learned how to use them.

Thanks for any help that you can provide.
Tony

===================WSDL=============================
<?xml version="1.0" encoding="utf-8" ?>
- <wsdl:definitions xmlns:http=" xmlns:soap=" xmlns:s=" xmlns:soapenc=" xmlns:tns=" xmlns:tm=" xmlns:mime=" targetNamespace=" xmlns:wsdl="- <wsdl:types>
- <s:schema elementFormDefault="qualified" targetNamespace="- <s:element name="RetrieveUnMarkedArchivedTrips">
<s:complexType />
</s:element>
- <s:element name="RetrieveUnMarkedArchivedTripsResponse">
- <s:complexType>
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1" name="RetrieveUnMarkedArchivedTripsResult">
- <s:complexType mixed="true">
- <s:sequence>
<s:any />
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
- <s:element name="RetrieveArchivedTrips">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="StartDate" type="s:dateTime" />
<s:element minOccurs="1" maxOccurs="1" name="EndDate" type="s:dateTime" />
</s:sequence>
</s:complexType>
</s:element>
- <s:element name="RetrieveArchivedTripsResponse">
- <s:complexType>
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1" name="RetrieveArchivedTripsResult">
- <s:complexType mixed="true">
- <s:sequence>
<s:any />
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
- <s:element name="MarkAsRead">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="TripIDList" type="tns:ArrayOfInt" />
</s:sequence>
</s:complexType>
</s:element>
- <s:complexType name="ArrayOfInt">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="int" type="s:int" />
</s:sequence>
</s:complexType>
- <s:element name="MarkAsReadResponse">
<s:complexType />
</s:element>
</s:schema>
</wsdl:types>
- <wsdl:message name="RetrieveUnMarkedArchivedTripsSoapIn">
<wsdl:part name="parameters" element="tns:RetrieveUnMarkedArchivedTrips" />
</wsdl:message>
- <wsdl:message name="RetrieveUnMarkedArchivedTripsSoapOut">
<wsdl:part name="parameters" element="tns:RetrieveUnMarkedArchivedTripsResponse" />
</wsdl:message>
- <wsdl:message name="RetrieveArchivedTripsSoapIn">
<wsdl:part name="parameters" element="tns:RetrieveArchivedTrips" />
</wsdl:message>
- <wsdl:message name="RetrieveArchivedTripsSoapOut">
<wsdl:part name="parameters" element="tns:RetrieveArchivedTripsResponse" />
</wsdl:message>
- <wsdl:message name="MarkAsReadSoapIn">
<wsdl:part name="parameters" element="tns:MarkAsRead" />
</wsdl:message>
- <wsdl:message name="MarkAsReadSoapOut">
<wsdl:part name="parameters" element="tns:MarkAsReadResponse" />
</wsdl:message>
- <wsdl:portType name="TripExportServiceSoap">
- <wsdl:eek:peration name="RetrieveUnMarkedArchivedTrips">
<documentation xmlns=" an XmlDocument conforming to the <a href=/XataNetWebService/MessageSchemas/SchemaDocumentation/TripExportDataObject/TripExportDataObject.html>TripExportDataObject.xsd</a> containing archived trips from the XataNet system for the OrganizationID contained in the login credentials and all that organization's SubOrganization's OrganizationID's that have not been MarkedAsRead by the OrganizationID contained in the login credentials. <BR></documentation>
<wsdl:input message="tns:RetrieveUnMarkedArchivedTripsSoapIn" />
<wsdl:eek:utput message="tns:RetrieveUnMarkedArchivedTripsSoapOut" />
</wsdl:eek:peration>
- <wsdl:eek:peration name="RetrieveArchivedTrips">
<documentation xmlns=" an XmlDocument conforming to the <a href=/XataNetWebService/MessageSchemas/SchemaDocumentation/TripExportDataObject/TripExportDataObject.html>TripExportDataObject.xsd</a> containing archived trips from the XataNet system for a specific date range for by the OrganizationID contained in the login credentials and all that organization's SubOrganization's OrganizationID's. <BR></documentation>
<wsdl:input message="tns:RetrieveArchivedTripsSoapIn" />
<wsdl:eek:utput message="tns:RetrieveArchivedTripsSoapOut" />
</wsdl:eek:peration>
- <wsdl:eek:peration name="MarkAsRead">
<documentation xmlns=" one or more archived trips as read in the XataNet system by the OrganizationID contained in the login credentials. <BR></documentation>
<wsdl:input message="tns:MarkAsReadSoapIn" />
<wsdl:eek:utput message="tns:MarkAsReadSoapOut" />
</wsdl:eek:peration>
</wsdl:portType>
- <wsdl:binding name="TripExportServiceSoap" type="tns:TripExportServiceSoap">
<soap:binding transport=" style="document" />
- <wsdl:eek:peration name="RetrieveUnMarkedArchivedTrips">
<soap:eek:peration soapAction=" style="document" />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:eek:utput>
<soap:body use="literal" />
</wsdl:eek:utput>
</wsdl:eek:peration>
- <wsdl:eek:peration name="RetrieveArchivedTrips">
<soap:eek:peration soapAction=" style="document" />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:eek:utput>
<soap:body use="literal" />
</wsdl:eek:utput>
</wsdl:eek:peration>
- <wsdl:eek:peration name="MarkAsRead">
<soap:eek:peration soapAction=" style="document" />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:eek:utput>
<soap:body use="literal" />
</wsdl:eek:utput>
</wsdl:eek:peration>
</wsdl:binding>
- <wsdl:service name="TripExportService">
- <wsdl:port name="TripExportServiceSoap" binding="tns:TripExportServiceSoap">
<soap:address location=" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

===================SOAP===============================
RetrieveArchivedTrips
Retrieves an XmlDocument conforming to the TripExportDataObject.xsd containing archived trips from the XataNet system for a specific date range for by the OrganizationID contained in the login credentials and all that organization's SubOrganization's OrganizationID's.


Test
The test form is only available for requests from the local machine.
SOAP
The following is a sample SOAP request and response. The placeholders shown need to be replaced with actual values.

POST /xatanetwebservice/tripexportservice.asmx HTTP/1.1
Host: xatanet.net
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi=" xmlns:xsd=" xmlns:soap=" <soap:Body>
<RetrieveArchivedTrips xmlns=" <StartDate>dateTime</StartDate>
<EndDate>dateTime</EndDate>
</RetrieveArchivedTrips>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi=" xmlns:xsd=" xmlns:soap=" <soap:Body>
<RetrieveArchivedTripsResponse xmlns=" <RetrieveArchivedTripsResult>xml</RetrieveArchivedTripsResult>
</RetrieveArchivedTripsResponse>
</soap:Body>
</soap:Envelope>
 
I still think this is an ASP question. I suppose the xml you want to get is the response from the execution of the WebService.

Cheers,
Dian
 
Just to let everybody know, I found the answer in a reply from another forum group. Here it is:

Dim node As XmlNode = proxy.RetrieveArchivedTrips(strDate, endDate)
Dim doc As XmlDocument = node.OwnerDocument
doc.AppendChild(node)

Thanks for the replies from everybody.

Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top