Click here to Skip to main content
15,899,313 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi EveryBody ,

I have a Java Application in which have the web service is just use like given below. I same i want to use this web service to our ASp.net Application. But i am not able to invoke this web service.
SO pls help me for this topic or provide me any reference article or post.


Java Web Service is given below
<wess:Envelope xmlns:wess="http://schemas.xmlsoap.org/soap/trosss/" xmlns:ser="http://websssobe.com/">
     <wess:Header>
               <credentials>
                    <userName>username</userName>
                    <password>pswd</password>
                </credentials> 
   </wess:Header>
   <wess:Body>
      <ser:placeOrder>
         <Phone>
            <phoneNumber>65416516212</phoneNumber>
         </Phone>
         <product>
            <code>TPMXNEXT</code>
         </product>
         <amount>
            <amount>10</amount>
            <!--Optional:-->
            <currencyISOCode>USD</currencyISOCode>
         </amount>
      </ser:placeOrder>
   </wess:Body>
</wess:Envelope>




Thanks
Posted
Comments
Sergey Alexandrovich Kryukov 24-Sep-12 15:48pm    
"I'm not able to invoke", is not informative; and this is not even a question. What is the problem, more exactly?
--SA
[no name] 24-Sep-12 16:21pm    
I mean that i want to implement this code in ASP.Net. Then How can i do that.
Sergey Alexandrovich Kryukov 24-Sep-12 18:10pm    
Do you mean that you won't use Java at all, want to migrate to ASP.NET? Anyway, you would need to explain more...
--SA
Ashraff Ali Wahab 24-Sep-12 16:15pm    
Use the WSDL to add the service reference and proxies will be generated. Use the Client and Proxy References to call the WebService.
[no name] 24-Sep-12 16:27pm    
The code is written like above provided. In which have where is the WSDL.

1 solution

I'm still not 100% clear on what you are asking...but it sounds like you are trying to consume a java webservice with asp.net. You can find help on things like this using google[^]. One of the first results is actually a Code Project Article: How to invoke Java web service in ASP.net using C#[^]

If that is not what you are looking for, can you please restate your question and provide more information about what you are looking for?

Hope this helps.
 
Share this answer
 
Comments
[no name] 24-Sep-12 19:50pm    
I have a java code which is given above that i want to convert in asp.net.
Kschuler 25-Sep-12 9:13am    
That doesn't look like code to me. It looks like what gets returned from a web service.
[no name] 25-Sep-12 18:09pm    
Do you have any Idea about Soap Message Consume WebService Using SOAP

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900