944,191 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 5753
  • VB.NET RSS
You are currently viewing page 1 of this multi-page discussion thread
Apr 21st, 2007
0

WSDL file EDITING

Expand Post »
hai, i have created a webservice file and made "web reference". in that i want to edit the .wsdl file and want to change the IP address....can anyone post me the coding? i want to put the wsdl file into an dataset and want to edit it...help me plz...its very urgent.......thanks in advance.....
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
karan_21584 is offline Offline
32 posts
since Mar 2007
Apr 21st, 2007
0

Re: WSDL file EDITING

Well can't you just find the ip address you want to change and then just change it.
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Apr 21st, 2007
0

Re: WSDL file EDITING

Click to Expand / Collapse  Quote originally posted by iamthwee ...
Well can't you just find the ip address you want to change and then just change it.
i need to change the ip address in runtime..i need the coding....i m trying in VB.net..help me....
dataset1.ReadXMLSchema( " c:\service.wsdl")
i tried the above line..but i cant..help me....
Reputation Points: 10
Solved Threads: 0
Light Poster
karan_21584 is offline Offline
32 posts
since Mar 2007
Apr 21st, 2007
0

Re: WSDL file EDITING

I don't get what you mean. Sorrie. runtime? What difference does it make if you change it at runtime or later?
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Apr 21st, 2007
0

Re: WSDL file EDITING

my coding is ...

dim ds as new dataset
ds.readxmlschema("c:\website2\sample\App_webreference\service.wsdl")
when i run the above coding in vb.net...i m getting the error "the supplied xmlinstance is a schema or contains an inline schema.this class cannot infer a schema for a schema"..help me plz
Reputation Points: 10
Solved Threads: 0
Light Poster
karan_21584 is offline Offline
32 posts
since Mar 2007
Apr 21st, 2007
0

Re: WSDL file EDITING

Erm is your wsdl file valid xml scheme?
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Apr 21st, 2007
0

Re: WSDL file EDITING

ERM means? my file is not an xmlschema...its wsdl file..which i got when i "add web reference" in vb.net.... the wsdl file has two ip address.i want to change that ip address during runtime.......help me...
Reputation Points: 10
Solved Threads: 0
Light Poster
karan_21584 is offline Offline
32 posts
since Mar 2007
Apr 21st, 2007
0

Re: WSDL file EDITING

Can you post the contents of your wsdl file and hightlight the ip address you need to change.
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Apr 21st, 2007
0

Re: WSDL file EDITING

<?xmlversion="1.0"encoding="utf-8"?>
<
wsdl:definitionsxmlns: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://tempuri.org/"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://tempuri.org/"xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<
wsdl:types>
<
s:schemaelementFormDefault="qualified"targetNamespace="http://tempuri.org/">
<
s:elementname="file_send">
<
s:complexType>
<
s:sequence>
<
s:elementminOccurs="0"maxOccurs="1"name="sam"type="s:string" />
</
s:sequence>
</
s:complexType>
</
s:element>
<
s:elementname="file_sendResponse">
<
s:complexType>
<
s:sequence>
<
s:elementminOccurs="0"maxOccurs="1"name="file_sendResult">
<
s:complexType>
<
s:sequence>
<
s:elementref="s:schema" />
<
s:any />
</
s:sequence>
</
s:complexType>
</
s:element>
</
s:sequence>
</
s:complexType>
</
s:element>
<
s:elementname="ListOfFile">
<
s:complexType>
<
s:sequence>
<
s:elementminOccurs="0"maxOccurs="1"name="getfile"type="s:string" />
</
s:sequence>
</
s:complexType>
</
s:element>
<
s:elementname="ListOfFileResponse">
<
s:complexType>
<
s:sequence>
<
s:elementminOccurs="0"maxOccurs="1"name="ListOfFileResult">
<
s:complexType>
<
s:sequence>
<
s:elementref="s:schema" />
<
s:any />
</
s:sequence>
</
s:complexType>
</
s:element>
</
s:sequence>
</
s:complexType>
</
s:element>
<
s:elementname="file_receive_store">
<
s:complexType>
<
s:sequence>
<
s:elementminOccurs="0"maxOccurs="1"name="ds1">
<
s:complexType>
<
s:sequence>
<
s:elementref="s:schema" />
<
s:any />
</
s:sequence>
</
s:complexType>
</
s:element>
<
s:elementminOccurs="0"maxOccurs="1"name="str"type="s:string" />
</
s:sequence>
</
s:complexType>
</
s:element>
<
s:elementname="file_receive_storeResponse">
<
s:complexType>
<
s:sequence>
<
s:elementminOccurs="0"maxOccurs="1"name="file_receive_storeResult"type="s:string" />
</
s:sequence>
</
s:complexType>
</
s:element>
</
s:schema>
</
wsdl:types>
<
wsdl:messagename="file_sendSoapIn">
<
wsdl:partname="parameters"element="tns:file_send" />
</
wsdl:message>
<
wsdl:messagename="file_sendSoapOut">
<
wsdl:partname="parameters"element="tns:file_sendResponse" />
</
wsdl:message>
<
wsdl:messagename="ListOfFileSoapIn">
<
wsdl:partname="parameters"element="tns:ListOfFile" />
</
wsdl:message>
<
wsdl:messagename="ListOfFileSoapOut">
<
wsdl:partname="parameters"element="tns:ListOfFileResponse" />
</
wsdl:message>
<
wsdl:messagename="file_receive_storeSoapIn">
<
wsdl:partname="parameters"element="tns:file_receive_store" />
</
wsdl:message>
<
wsdl:messagename="file_receive_storeSoapOut">
<
wsdl:partname="parameters"element="tns:file_receive_storeResponse" />
</
wsdl:message>
<
wsdl:portTypename="ServiceSoap">
<
wsdl:operationname="file_send">
<
wsdl:inputmessage="tns:file_sendSoapIn" />
<
wsdl:outputmessage="tns:file_sendSoapOut" />
</
wsdl:operation>
<
wsdl:operationname="ListOfFile">
<
wsdl:inputmessage="tns:ListOfFileSoapIn" />
<
wsdl:outputmessage="tns:ListOfFileSoapOut" />
</
wsdl:operation>
<
wsdl:operationname="file_receive_store">
<
wsdl:inputmessage="tns:file_receive_storeSoapIn" />
<
wsdl:outputmessage="tns:file_receive_storeSoapOut" />
</
wsdl:operation>
</
wsdl:portType>
<
wsdl:bindingname="ServiceSoap"type="tnserviceSoap">
<
soap:bindingtransport="http://schemas.xmlsoap.org/soap/http" />
<
wsdl:operationname="file_send">
<
soap:operationsoapAction="http://tempuri.org/file_send"style="document" />
<
wsdl:input>
<
soap:bodyuse="literal" />
</
wsdl:input>
<
wsdl:output>
<
soap:bodyuse="literal" />
</
wsdl:output>
</
wsdl:operation>
<
wsdl:operationname="ListOfFile">
<
soap:operationsoapAction="http://tempuri.org/ListOfFile"style="document" />
<
wsdl:input>
<
soap:bodyuse="literal" />
</
wsdl:input>
<
wsdl:output>
<
soap:bodyuse="literal" />
</
wsdl:output>
</
wsdl:operation>
<
wsdl:operationname="file_receive_store">
<
soap:operationsoapAction="http://tempuri.org/file_receive_store"style="document" />
<
wsdl:input>
<
soap:bodyuse="literal" />
</
wsdl:input>
<
wsdl:output>
<
soap:bodyuse="literal" />
</
wsdl:output>
</
wsdl:operation>
</
wsdl:binding>
<
wsdl:bindingname="ServiceSoap12"type="tnserviceSoap">
<
soap12:bindingtransport="http://schemas.xmlsoap.org/soap/http" />
<
wsdl:operationname="file_send">
<
soap12:operationsoapAction="http://tempuri.org/file_send"style="document" />
<
wsdl:input>
<
soap12:bodyuse="literal" />
</
wsdl:input>
<
wsdl:output>
<
soap12:bodyuse="literal" />
</
wsdl:output>
</
wsdl:operation>
<
wsdl:operationname="ListOfFile">
<
soap12:operationsoapAction="http://tempuri.org/ListOfFile"style="document" />
<
wsdl:input>
<
soap12:bodyuse="literal" />
</
wsdl:input>
<
wsdl:output>
<
soap12:bodyuse="literal" />
</
wsdl:output>
</
wsdl:operation>
<
wsdl:operationname="file_receive_store">
<
soap12:operationsoapAction="http://tempuri.org/file_receive_store"style="document" />
<
wsdl:input>
<
soap12:bodyuse="literal" />
</
wsdl:input>
<
wsdl:output>
<
soap12:bodyuse="literal" />
</
wsdl:output>
</
wsdl:operation>
</
wsdl:binding>
<
wsdl:servicename="Service">
<
wsdl:portname="ServiceSoap"binding="tnserviceSoap">
<
soap:addresslocation="http://172.31.15.70/testwebserver/Service.asmx" />
</
wsdl:port>
<
wsdl:portname="ServiceSoap12"binding="tnserviceSoap12">
<
soap12:addresslocation="http://172.31.15.70/testwebserver/Service.asmx" />
</
wsdl:port>
</
wsdl:service>
</
wsdl:definitions>

"http://172.31.15.70/testwebserver/Service.asmx"...want to change this whole address to "http://170.30.19.45/destination/Service.asmx"
Reputation Points: 10
Solved Threads: 0
Light Poster
karan_21584 is offline Offline
32 posts
since Mar 2007
Apr 21st, 2007
0

Re: WSDL file EDITING

Er, have you heard of string.replace?
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: combobox - remember last selection
Next Thread in VB.NET Forum Timeline: Vb.net + Checkedlistbox





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC