WSDL file EDITING

Please support our VB.NET advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Mar 2007
Posts: 32
Reputation: karan_21584 is an unknown quantity at this point 
Solved Threads: 0
karan_21584 karan_21584 is offline Offline
Light Poster

WSDL file EDITING

 
0
  #1
Apr 21st, 2007
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.....
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,273
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 378
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: WSDL file EDITING

 
0
  #2
Apr 21st, 2007
Well can't you just find the ip address you want to change and then just change it.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 32
Reputation: karan_21584 is an unknown quantity at this point 
Solved Threads: 0
karan_21584 karan_21584 is offline Offline
Light Poster

Re: WSDL file EDITING

 
0
  #3
Apr 21st, 2007
Originally Posted by iamthwee View Post
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....
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,273
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 378
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: WSDL file EDITING

 
0
  #4
Apr 21st, 2007
I don't get what you mean. Sorrie. runtime? What difference does it make if you change it at runtime or later?
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 32
Reputation: karan_21584 is an unknown quantity at this point 
Solved Threads: 0
karan_21584 karan_21584 is offline Offline
Light Poster

Re: WSDL file EDITING

 
0
  #5
Apr 21st, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,273
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 378
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: WSDL file EDITING

 
0
  #6
Apr 21st, 2007
Erm is your wsdl file valid xml scheme?
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 32
Reputation: karan_21584 is an unknown quantity at this point 
Solved Threads: 0
karan_21584 karan_21584 is offline Offline
Light Poster

Re: WSDL file EDITING

 
0
  #7
Apr 21st, 2007
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...
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,273
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 378
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: WSDL file EDITING

 
0
  #8
Apr 21st, 2007
Can you post the contents of your wsdl file and hightlight the ip address you need to change.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 32
Reputation: karan_21584 is an unknown quantity at this point 
Solved Threads: 0
karan_21584 karan_21584 is offline Offline
Light Poster

Re: WSDL file EDITING

 
0
  #9
Apr 21st, 2007
<?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"
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,273
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 378
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: WSDL file EDITING

 
0
  #10
Apr 21st, 2007
Er, have you heard of string.replace?
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum


Views: 4548 | Replies: 17
Thread Tools Search this Thread



Tag cloud for VB.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC