SOAPHeaderElement element = envelope.getHeaderByName

P

plork123

Please can someone help me

I'm trying to implement the above line of code but stuck as to what to
put in the first parameter

SOAPHeaderElement element =
envelope.getHeaderByName("http://localhost:8080....what goes in here",
"headername");

Can some please help me

Many thanks
 
I

iksrazal

plork123 said:
Please can someone help me

I'm trying to implement the above line of code but stuck as to what to
put in the first parameter

SOAPHeaderElement element =
envelope.getHeaderByName("http://localhost:8080....what goes in here",
"headername");

Can some please help me

Many thanks

Its just a namespace. Take a look at EntityResolver to get a better
idea. Seems like you are trying to get an existing one - via get -
instead of creating one yourself as would be expected when using
localhost. Use the SOAPMonitor applet to what it typically is - for
security work you often create your own as a marker such as
"http://schemas.xmlsoap.org/soap/envelope/" . So you'll get null if it
doesn't exist, so use a tool to sniff out the value. Keep in mind
though it may indeed not exist at all unless you create it yourself.

hth,
iksrazal
http://www.braziloutsource.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,586
Members
45,097
Latest member
RayE496148

Latest Threads

Top