| | |
Convert soap reply result from string to different tyoe
Please support our RSS, Web Services and SOAP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jul 2009
Posts: 1
Reputation:
Solved Threads: 0
Hi,
I'm writing a .net wcf service that can return result in the form the user expects. So a user when adding a web reference to the service can also provide an xsd containing the type definition for the return type he expects and the service will include the xsd in the wsdl so that the service proxy definition will include these type and user need not define them. In addition the service also needs to return the result as this user supplied type.
I'm using a XSLT to transform the output to a form similar to the serialized form of the type. Unfortunately this result is always received as a string on the client side. I also tried intercepting the soap reply and converting the string to XML in which case it is received as an XML. The return type defined for the method is a generic object. Is there any way to modify the soap response so that it returns the desired object instead.
Another way is to create a type and object instance at runtime but I dont want to use that due to its heavy performance and memory requirements.
I'm writing a .net wcf service that can return result in the form the user expects. So a user when adding a web reference to the service can also provide an xsd containing the type definition for the return type he expects and the service will include the xsd in the wsdl so that the service proxy definition will include these type and user need not define them. In addition the service also needs to return the result as this user supplied type.
I'm using a XSLT to transform the output to a form similar to the serialized form of the type. Unfortunately this result is always received as a string on the client side. I also tried intercepting the soap reply and converting the string to XML in which case it is received as an XML. The return type defined for the method is a generic object. Is there any way to modify the soap response so that it returns the desired object instead.
Another way is to create a type and object instance at runtime but I dont want to use that due to its heavy performance and memory requirements.
Thanks and Regards,
Reshma
Reshma
![]() |
Similar Threads
- Postfix calculator (C++)
- convert string to double, and result is string again (Java)
- HELP Concert Floating Point to ASCII String... (Assembly)
- string help (C++)
- copy string and convert to upper case (Assembly)
Other Threads in the RSS, Web Services and SOAP Forum
- Previous Thread: Extracting tag attributes
- Next Thread: Float truncated
| Thread Tools | Search this Thread |
.htaccess 301 accept access alltop api authentication binarysecuritytoken blog card collaboration credit data development ebay email evernote flash google government highrise htaccess intel internet legal live netbeans patent paypal php podcast proxy redirect rss rssfeeds searchmonkey server service soap software swappingxmlfromflash swappingxmlnodes url web webservices webservicesecurity wiki wikipedia xerces xml xslt y!os yahoo ydn





