Ask a Question

Inserting Data into WsdlRequests

sonken
New Contributor

Inserting Data into WsdlRequests

Hi there, I am doing programmatic automation of SOAP requests. I enumerate the requests and then replace certain values with longer strings which i generate.

The code looks like:

convertedRequest = (WsdlRequest) targets.get(targ);
convertedRequest.setRequestContent(stripNonValidXMLCharacters(convertedRequest.getRequestContent().replace(">?<", ">"+myData+"<")));


The problem that I am having is that only the first character of myData is being inserted. This doesn't really make much sense to me. Any ideas?
0 REPLIES 0
cancel
Showing results for 
Search instead for 
Did you mean: