Forum Discussion

sonken's avatar
sonken
New Contributor
14 years ago

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?
No RepliesBe the first to reply