473,769 Members | 1,743 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problems calling J2EE Web service from .Net in a High perfomance web app

ben
OK so there are a few things going on. I succesfully created a SOAP
webreference in VS IDE which when built works fine under small amounts
of load, however under heavy amounts of load we start to see a
performance issue on the J2EE (CPU utilisation max's out) the load
testing tool can hit the web service directly using HTTP posts and for
the same amount of load the webservice performs considerably better. So
the JAVA guys have asked me if I can use HTTP posts instead of SOAP
requests. Which I should be able to do using the HTTPPostClientP rotocol
class in .NET. I tried just playing around with it creating one
manually using the SOAP reference.cs which had been generated by the
webrefernece as a guide however when ever I made calls to it I'd get
"getPlatinu mAds Web Service method name is not valid. Parameter name:
methodName." errors where getPlatinumAds is the method I'm trying to
call, so I figured I'd missed something so then I tried creating a
proxy class using the WSDL.exe tool, except when I i specified the
protocol as HTTPPost("wsdl /l:cs /protocol:HTTPPo st
http://lisa:20002/AdSearch/search?wsdl") I got a "Warning: no classes
were generated." if I specify the protocol as SOAP ("wsdl /l:cs
/protocol:SOAP http://lisa:20002/AdSearch/search?wsdl") everything
works fine and the proxy is generated however that's where I was to
start with. I don't need a SOAP proxy class I need a HTTPPost Proxy
class.

Any help or pointers would be greatly appreciated.

Thanks, Ben Dyer.

The WSDL file is :::

<?xml version="1.0" encoding="utf-8"?>
<definitions xmlns:http="htt p://schemas.xmlsoap .org/wsdl/http/"
xmlns:soap="htt p://schemas.xmlsoap .org/wsdl/soap/"
xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="urn:S earch"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="htt p://schemas.xmlsoap .org/wsdl/mime/"
targetNamespace ="urn:Search " name="SearchSer vice"
xmlns="http://schemas.xmlsoap .org/wsdl/">
<types>
<s:schema xmlns:wsdl="htt p://schemas.xmlsoap .org/wsdl/"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:soap11-enc="http://schemas.xmlsoap .org/soap/encoding/"
targetNamespace ="urn:Search ">
<s:import namespace="http ://schemas.xmlsoap .org/soap/encoding/"/>
<s:complexTyp e name="ArrayOfIn teger">
<s:complexConte nt mixed="false">
<s:restrictio n base="soap11-enc:Array">
<s:attribute wsdl:arrayType= "soap11-enc:int[]"
ref="soap11-enc:arrayType" />
</s:restriction>
</s:complexConten t>
</s:complexType>
<s:complexTyp e name="ArrayOfst ring">
<s:complexConte nt mixed="false">
<s:restrictio n base="soap11-enc:Array">
<s:attribute wsdl:arrayType= "s:string[]"
ref="soap11-enc:arrayType" />
</s:restriction>
</s:complexConten t>
</s:complexType>
</s:schema>
</types>
<message name="SearchIF_ compareAndContr ast">
<part name="String_1" type="s:string" />
</message>
<message name="SearchIF_ compareAndContr astResponse">
<part name="result" type="s:string" />
</message>
<message name="SearchIF_ delete">
<part name="arrayOfIn teger_1" type="s0:ArrayO fInteger" />
</message>
<message name="SearchIF_ deleteResponse" />
<message name="SearchIF_ getItemsCount">
<part name="String_1" type="s:string" />
</message>
<message name="SearchIF_ getItemsCountRe sponse">
<part name="result" type="s:string" />
</message>
<message name="SearchIF_ getLookup">
<part name="arrayOfSt ring_1" type="s0:ArrayO fstring" />
</message>
<message name="SearchIF_ getLookupRespon se">
<part name="result" type="s:string" />
</message>
<message name="SearchIF_ getPlatinumAds" >
<part name="String_1" type="s:string" />
</message>
<message name="SearchIF_ getPlatinumAdsR esponse">
<part name="result" type="s:string" />
</message>
<message name="SearchIF_ saveCompareAndC ontrast">
<part name="String_1" type="s:string" />
<part name="String_2" type="s:string" />
</message>
<message name="SearchIF_ saveCompareAndC ontrastResponse " />
<message name="SearchIF_ saveSearchAutoT rader">
<part name="String_1" type="s:string" />
<part name="String_2" type="s:string" />
</message>
<message name="SearchIF_ saveSearchAutoT raderResponse" />
<message name="SearchIF_ saveSearchBasic ">
<part name="String_1" type="s:string" />
<part name="String_2" type="s:string" />
</message>
<message name="SearchIF_ saveSearchBasic Response" />
<message name="SearchIF_ saveSearchCanne d">
<part name="String_1" type="s:string" />
<part name="String_2" type="s:string" />
</message>
<message name="SearchIF_ saveSearchCanne dResponse" />
<message name="SearchIF_ saveSearchTradi ngpost">
<part name="String_1" type="s:string" />
<part name="String_2" type="s:string" />
</message>
<message name="SearchIF_ saveSearchTradi ngpostResponse" />
<message name="SearchIF_ searchAutoTrade r">
<part name="String_1" type="s:string" />
</message>
<message name="SearchIF_ searchAutoTrade rResponse">
<part name="result" type="s:string" />
</message>
<message name="SearchIF_ searchBasic">
<part name="String_1" type="s:string" />
</message>
<message name="SearchIF_ searchBasicResp onse">
<part name="result" type="s:string" />
</message>
<message name="SearchIF_ searchCanned">
<part name="String_1" type="s:string" />
</message>
<message name="SearchIF_ searchCannedRes ponse">
<part name="result" type="s:string" />
</message>
<message name="SearchIF_ searchTradingpo st">
<part name="String_1" type="s:string" />
</message>
<message name="SearchIF_ searchTradingpo stResponse">
<part name="result" type="s:string" />
</message>
<portType name="SearchIF" >
<operation name="compareAn dContrast" parameterOrder= "String_1">
<input message="s0:Sea rchIF_compareAn dContrast" />
<output message="s0:Sea rchIF_compareAn dContrastRespon se" />
</operation>
<operation name="delete" parameterOrder= "arrayOfInteger _1">
<input message="s0:Sea rchIF_delete" />
<output message="s0:Sea rchIF_deleteRes ponse" />
</operation>
<operation name="getItemsC ount" parameterOrder= "String_1">
<input message="s0:Sea rchIF_getItemsC ount" />
<output message="s0:Sea rchIF_getItemsC ountResponse" />
</operation>
<operation name="getLookup " parameterOrder= "arrayOfString_ 1">
<input message="s0:Sea rchIF_getLookup " />
<output message="s0:Sea rchIF_getLookup Response" />
</operation>
<operation name="getPlatin umAds" parameterOrder= "String_1">
<input message="s0:Sea rchIF_getPlatin umAds" />
<output message="s0:Sea rchIF_getPlatin umAdsResponse" />
</operation>
<operation name="saveCompa reAndContrast" parameterOrder= "String_1
String_2">
<input message="s0:Sea rchIF_saveCompa reAndContrast" />
<output message="s0:Sea rchIF_saveCompa reAndContrastRe sponse" />
</operation>
<operation name="saveSearc hAutoTrader" parameterOrder= "String_1
String_2">
<input message="s0:Sea rchIF_saveSearc hAutoTrader" />
<output message="s0:Sea rchIF_saveSearc hAutoTraderResp onse" />
</operation>
<operation name="saveSearc hBasic" parameterOrder= "String_1
String_2">
<input message="s0:Sea rchIF_saveSearc hBasic" />
<output message="s0:Sea rchIF_saveSearc hBasicResponse" />
</operation>
<operation name="saveSearc hCanned" parameterOrder= "String_1
String_2">
<input message="s0:Sea rchIF_saveSearc hCanned" />
<output message="s0:Sea rchIF_saveSearc hCannedResponse " />
</operation>
<operation name="saveSearc hTradingpost" parameterOrder= "String_1
String_2">
<input message="s0:Sea rchIF_saveSearc hTradingpost" />
<output message="s0:Sea rchIF_saveSearc hTradingpostRes ponse" />
</operation>
<operation name="searchAut oTrader" parameterOrder= "String_1">
<input message="s0:Sea rchIF_searchAut oTrader" />
<output message="s0:Sea rchIF_searchAut oTraderResponse " />
</operation>
<operation name="searchBas ic" parameterOrder= "String_1">
<input message="s0:Sea rchIF_searchBas ic" />
<output message="s0:Sea rchIF_searchBas icResponse" />
</operation>
<operation name="searchCan ned" parameterOrder= "String_1">
<input message="s0:Sea rchIF_searchCan ned" />
<output message="s0:Sea rchIF_searchCan nedResponse" />
</operation>
<operation name="searchTra dingpost" parameterOrder= "String_1">
<input message="s0:Sea rchIF_searchTra dingpost" />
<output message="s0:Sea rchIF_searchTra dingpostRespons e" />
</operation>
</portType>
<binding name="SearchIFB inding" type="s0:Search IF">
<soap:binding transport="http ://schemas.xmlsoap .org/soap/http"
style="rpc" />
<operation name="compareAn dContrast">
<soap:operati on soapAction="" />
<input>
<soap:body use="encoded" namespace="urn: Search"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</input>
<output>
<soap:body use="encoded" namespace="urn: Search"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</output>
</operation>
<operation name="delete">
<soap:operati on soapAction="" />
<input>
<soap:body use="encoded" namespace="urn: Search"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</input>
<output>
<soap:body use="encoded" namespace="urn: Search"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</output>
</operation>
<operation name="getItemsC ount">
<soap:operati on soapAction="" />
<input>
<soap:body use="encoded" namespace="urn: Search"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</input>
<output>
<soap:body use="encoded" namespace="urn: Search"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</output>
</operation>
<operation name="getLookup ">
<soap:operati on soapAction="" />
<input>
<soap:body use="encoded" namespace="urn: Search"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</input>
<output>
<soap:body use="encoded" namespace="urn: Search"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</output>
</operation>
<operation name="getPlatin umAds">
<soap:operati on soapAction="" />
<input>
<soap:body use="encoded" namespace="urn: Search"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</input>
<output>
<soap:body use="encoded" namespace="urn: Search"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</output>
</operation>
<operation name="saveCompa reAndContrast">
<soap:operati on soapAction="" />
<input>
<soap:body use="encoded" namespace="urn: Search"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</input>
<output>
<soap:body use="encoded" namespace="urn: Search"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</output>
</operation>
<operation name="saveSearc hAutoTrader">
<soap:operati on soapAction="" />
<input>
<soap:body use="encoded" namespace="urn: Search"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</input>
<output>
<soap:body use="encoded" namespace="urn: Search"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</output>
</operation>
<operation name="saveSearc hBasic">
<soap:operati on soapAction="" />
<input>
<soap:body use="encoded" namespace="urn: Search"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</input>
<output>
<soap:body use="encoded" namespace="urn: Search"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</output>
</operation>
<operation name="saveSearc hCanned">
<soap:operati on soapAction="" />
<input>
<soap:body use="encoded" namespace="urn: Search"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</input>
<output>
<soap:body use="encoded" namespace="urn: Search"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</output>
</operation>
<operation name="saveSearc hTradingpost">
<soap:operati on soapAction="" />
<input>
<soap:body use="encoded" namespace="urn: Search"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</input>
<output>
<soap:body use="encoded" namespace="urn: Search"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</output>
</operation>
<operation name="searchAut oTrader">
<soap:operati on soapAction="" />
<input>
<soap:body use="encoded" namespace="urn: Search"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</input>
<output>
<soap:body use="encoded" namespace="urn: Search"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</output>
</operation>
<operation name="searchBas ic">
<soap:operati on soapAction="" />
<input>
<soap:body use="encoded" namespace="urn: Search"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</input>
<output>
<soap:body use="encoded" namespace="urn: Search"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</output>
</operation>
<operation name="searchCan ned">
<soap:operati on soapAction="" />
<input>
<soap:body use="encoded" namespace="urn: Search"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</input>
<output>
<soap:body use="encoded" namespace="urn: Search"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</output>
</operation>
<operation name="searchTra dingpost">
<soap:operati on soapAction="" />
<input>
<soap:body use="encoded" namespace="urn: Search"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</input>
<output>
<soap:body use="encoded" namespace="urn: Search"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</output>
</operation>
</binding>
<service name="SearchSer vice">
<port name="SearchIFP ort" binding="s0:Sea rchIFBinding">
<soap:address
location="http://lisa.trader:200 02/AdSearch/search"/>
</port>
</service>
</definitions>

Jul 19 '06 #1
0 1372

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
7697
by: Herman | last post by:
Hi everyone, I'm currently studying for my Master's in Computer Science, and I will be working on my thesis this summer. I've been thinking about constructing a web services application for my thesis, as I've been interested in this technology, and I haven't had a chance to work with it in my last job. The issue is what platform to use: ..NET or J2EE? Prior to starting my MSc course, I worked for a software developer for five years...
2
4323
by: Silvana Di Martino | last post by:
My group recently received its first request for the the development of a really large and complex enterprise-level application, the kind of app that would require the use of tools like Enterprise Java Beans and J2EE (it is something very similar to the "Titan Cruise" example supplied by Richard Monson Haefel in his fine book "Enetrprise JavaBeans", for the people who read it). Of course, being all Pythonists, we wonder if there was any...
124
4967
by: 43 | last post by:
how come m$Office isn't written in .net? how come Open Office isn't written in j2ee? how come dbms systems aren't written in either? how come browsers aren't written in either? how come RealPlayer, MediaPlayer and all applications that need speed are written in c++ ? (except for
4
1977
by: leslie_tighe | last post by:
Hello, I have a webservice running on a J2EE server created with Axis 1.2.. I have a client that I am building in .net that needs to consume this webserivce and am having a bit of trouble. I have pasted the wsdl below and have a created a class in VB.net by adding a web refrence to my project. What is odd is that I can successfully call methods that return a simple value like a string. I call also call methods that add an object....
2
3005
by: =?Utf-8?B?Uk5vZWw=?= | last post by:
I implemented a J2EE web service on Sun's Application Server 8. The web service is set up to require BASIC authentication. I created a Java client that passes credenttials for the authentication and all went well. I then tried to add a web reference to a client project in .NET using VB. My code is essentially (WSRef is the name of my added web service reference): Dim ws As New WSRef.X_WS Dim oper As New WSRef.myOper Dim cred As New...
4
3872
by: gengyue | last post by:
Hi, I need to call .Net webservice from my JSP page. My application is Struts application. It is deployed on Oracle application server. Here is the whole process. I have a login form. When user hit login button, my Action class will validate the user information and send his information to the other site by calling .Net web service, so the other site can extract these information. So, in my jsp, I am using Javascript and webservice.htc to...
4
4123
by: gengyue | last post by:
Hi, I need to call .Net webservice from my JSP page. My application is Struts application. It is deployed on Oracle application server. Here is the whole process. I have a login form. When user hit login button, my Action class will validate the user information and send his information to the other site by calling .Net web service, so the other site can extract these information. So, in my jsp, I am using Javascript and webservice.htc to...
4
1649
by: Scott M. | last post by:
Believe it or not, I've searched quite a bit and can't find any relevant information on how to consume a J2EE web service from a .NET consumer WITHOUT the aid of any 3rd party tools. I have two questions: 1. In a nutshell, how is this accomplished? 2. Are there any publicly available J2EE web services out there that I can try this against? I don't have the ability to create the J2EE side of the
2
1155
by: MickJ | last post by:
Hi, I would like to write High perfomance server using C#. It would be desirable to hear offers and advices on this subject.
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10212
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10047
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7410
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5304
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3962
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3563
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.