954,551 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

WSDL file EDITING

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.....

karan_21584
Light Poster
32 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
 

Well can't you just find the ip address you want to change and then just change it.

iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
 
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....

karan_21584
Light Poster
32 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
 

I don't get what you mean. Sorrie. runtime? What difference does it make if you change it at runtime or later?

iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
 

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

karan_21584
Light Poster
32 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
 

Erm is your wsdl file valid xml scheme?

iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
 

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...

karan_21584
Light Poster
32 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
 

Can you post the contents of your wsdl file and hightlight the ip address you need to change.

iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
 
karan_21584
Light Poster
32 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
 

Er, have you heard of string.replace?

iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
 

my coding is ...

dim ds as new dataset
ds.readxmlschema("c:\website2\sample\App_webreference\service.wsdl")
ds.tables(0).rows(0).item(0)=ds.tables(0).rows(0).item(0).tostring.replace(ds.tables(0).rows(0).item(0), http://172.13.15.65/test12/service.asmx )

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".
i want to read that wsdl file content to an dataset.....and replace it into the dataset...help me plz

karan_21584
Light Poster
32 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
 

well this error,

the supplied xmlinstance is a schema or contains an inline schema.this class cannot infer a schema for a schema

seems to be saying your file has a schema within a schema. If your file isn't legitimate xml then it won't get any further?

To be honest I'm just guessing. Maybe someone else can help you.

Also another spot:-

replace(ds.tables(0).rows(0).item(0),"http://172.13.15.65/test12/service.asmx")

Don't you need quotes around the web adress?

iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
 

i dt need the quotes......

karan_21584
Light Poster
32 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
 
i dt need the quotes......


Are you sure, all the examples using string replace have quotes.

iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
 

Karan: I really don't know VB that well, but don't you have to put the ip address in quotes?

ds.tables(0).rows(0).item(0)=ds.tables(0).rows(0).item(0).tostring.replace(ds.tables(0).rows(0).item(0), "http://172.13.15.65/test12/service.asmx")
Ancient Dragon
Retired & Loving It
Team Colleague
30,050 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

ok...i wwant that matter only....with quotes or without quotes.... no problem...can u help me?

karan_21584
Light Poster
32 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
 

wait sirs..i m going for DINNER...we will continue...at 8.............plz

karan_21584
Light Poster
32 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
 

hello ...anyone help me?

karan_21584
Light Poster
32 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You