User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the VB.NET section within the Software Development category of DaniWeb, a massive community of 397,813 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,553 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our VB.NET advertiser:
Views: 2656 | Replies: 17
Reply
Join Date: Mar 2007
Posts: 30
Reputation: karan_21584 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
karan_21584 karan_21584 is offline Offline
Light Poster

Question WSDL file EDITING

  #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.....
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2005
Posts: 4,697
Reputation: iamthwee is just really nice iamthwee is just really nice iamthwee is just really nice iamthwee is just really nice iamthwee is just really nice 
Rep Power: 17
Solved Threads: 308
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Industrious Poster

Re: WSDL file EDITING

  #2  
Apr 21st, 2007
Well can't you just find the ip address you want to change and then just change it.
Member of: F-ugly code club

Join today don't delay!
Reply With Quote  
Join Date: Mar 2007
Posts: 30
Reputation: karan_21584 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
karan_21584 karan_21584 is offline Offline
Light Poster

Question Re: WSDL file EDITING

  #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  
Join Date: Aug 2005
Posts: 4,697
Reputation: iamthwee is just really nice iamthwee is just really nice iamthwee is just really nice iamthwee is just really nice iamthwee is just really nice 
Rep Power: 17
Solved Threads: 308
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Industrious Poster

Re: WSDL file EDITING

  #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?
Member of: F-ugly code club

Join today don't delay!
Reply With Quote  
Join Date: Mar 2007
Posts: 30
Reputation: karan_21584 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
karan_21584 karan_21584 is offline Offline
Light Poster

Re: WSDL file EDITING

  #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  
Join Date: Aug 2005
Posts: 4,697
Reputation: iamthwee is just really nice iamthwee is just really nice iamthwee is just really nice iamthwee is just really nice iamthwee is just really nice 
Rep Power: 17
Solved Threads: 308
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Industrious Poster

Re: WSDL file EDITING

  #6  
Apr 21st, 2007
Erm is your wsdl file valid xml scheme?
Member of: F-ugly code club

Join today don't delay!
Reply With Quote  
Join Date: Mar 2007
Posts: 30
Reputation: karan_21584 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
karan_21584 karan_21584 is offline Offline
Light Poster

Re: WSDL file EDITING

  #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  
Join Date: Aug 2005
Posts: 4,697
Reputation: iamthwee is just really nice iamthwee is just really nice iamthwee is just really nice iamthwee is just really nice iamthwee is just really nice 
Rep Power: 17
Solved Threads: 308
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Industrious Poster

Re: WSDL file EDITING

  #8  
Apr 21st, 2007
Can you post the contents of your wsdl file and hightlight the ip address you need to change.
Member of: F-ugly code club

Join today don't delay!
Reply With Quote  
Join Date: Mar 2007
Posts: 30
Reputation: karan_21584 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
karan_21584 karan_21584 is offline Offline
Light Poster

Re: WSDL file EDITING

  #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  
Join Date: Aug 2005
Posts: 4,697
Reputation: iamthwee is just really nice iamthwee is just really nice iamthwee is just really nice iamthwee is just really nice iamthwee is just really nice 
Rep Power: 17
Solved Threads: 308
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Industrious Poster

Re: WSDL file EDITING

  #10  
Apr 21st, 2007
Er, have you heard of string.replace?
Member of: F-ugly code club

Join today don't delay!
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb VB.NET Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the VB.NET Forum

All times are GMT -4. The time now is 6:29 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC