francislang
Content Type
Profiles
Forums
Events
Posts posted by francislang
-
-
I've got an XML document that returns various bits of information from my webservice. The tags and some values are created inside a stored procedure. I then load the XML into a domXML object in .net because I want to insert a PDF file into the <PDFFILE> tags that were created in the SP.
Question: I need to change the property/attribute of the <PDFFILE> tag to tell the client(webservice) that it is base 64 encoded. e.g. <PDFFILE xmlns:dt=""urn:schemas-microsoft-com:datatypes"" dt:dt=""bin.base64"">
How do I go about changing this in .net?
Any help would be most appreciated.
0
Asynchronous access to synchronous webservice
in Web Development (HTML, Java, PHP, ASP, XML, etc.)
Posted
I have a user that uses a tool called SonicMQ to send XML to my web service. The web service responds instantly and sends a response back to the client.
However, this particular user cannot tie up the response from the web service to the request he has made. This is a problem.
I've been looking into SOAP headers and thought it might be possible to create an optional 'MessageID' that he could pass in the header and then it could be returned in the response. Therefore allowing him to tie up both messages.
Question:
If I do this to my web method;
<WebMethod(), SoapHeader("MessageID", Direction:=SoapHeaderDirection.InOut, Required:=False)> _
Public Function MethodName(ByVal s As String) As String
Will it automatically include the 'MessageID' in the response if it is supplied? Or do I have to tell it to send it back?
Any help would be greatly appreciated.
Cheers,
Francis