This week's book giveaway is in the Security forum.
We're giving away four copies of Securing DevOps and have Julien Vehent on-line!
See this thread for details.
Win a copy of Securing DevOps this week in the Security forum!

pramodh somashekara

Ranch Hand
+ Follow
since Jan 30, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by pramodh somashekara

hi, I've a query regarding design of webservices. We have two webservice providers to whom we connect through our web service client program. But the variables declared varies to refer to the same information. Take for example: Provider1 has declared a variable to refer account number as "acctID", provider2 declared it as "accountId" and in our existing client interface we have it as "accountNum".

So when we generated stubs from the wsdl files provided by verndors, the generated code would have corresponding setters and we are forced to do manual mapping to the fields from client program to corresponding provider requirements.

Please suggest if you have better design for this scenario. Thanks
(Env: Axis 1.4.1, JDK 1.5)
8 years ago
hi, i'm new to webservices and need your help in writing webservice client which takes input as an object and return type is also an object using XMLBeans as databinding mechanism. Please find the attached WSDL file for ref. Thanks inadvance

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xsd="http://xyz.com" xmlns:ax21="http://xyz.com/xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://xyz.com">
<wsdl:types>
<xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://xyz.com/xsd">
<xs:complexType name="InputObj">
<xs:sequence>
<xs:element minOccurs="0" name="empNo" nillable="true" type="xs:double"/>
<xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="OutputObj">
<xs:sequence>
<xs:element minOccurs="0" name="company" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="designation" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="empNo" nillable="true" type="xs:double"/>
<xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
<xs:schema xmlns:ax22="http://xyz.com/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://xyz.com">
<xs:import namespace="http://xyz.com/xsd"/>
<xs:element name="getOutput">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="inputObj" nillable="true" type="ax22:InputObj"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="getOutputResponse">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="ax22:OutputObj"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</wsdl:types>
<wsdl:message name="getOutputRequest">
<wsdl:part name="parameters" element="xsd:getOutput"/>
</wsdl:message>
<wsdl:message name="getOutputResponse">
<wsdl:part name="parameters" element="xsd:getOutputResponse"/>
</wsdl:message>
<wsdl:portType name="ServiceDefPortType">
<wsdlperation name="getOutput">
<wsdl:input message="xsd:getOutputRequest" wsaw:Action="urn:getOutput"/>
<wsdlutput message="xsd:getOutputResponse" wsaw:Action="urn:getOutputResponse"/>
</wsdlperation>
</wsdl:portType>
<wsdl:binding name="ServiceDefSoap11Binding" type="xsd:ServiceDefPortType">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<wsdlperation name="getOutput">
<soapperation soapAction="urn:getOutput" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdlutput>
<soap:body use="literal"/>
</wsdlutput>
</wsdlperation>
</wsdl:binding>
<wsdl:binding name="ServiceDefSoap12Binding" type="xsd:ServiceDefPortType">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<wsdlperation name="getOutput">
<soap12peration soapAction="urn:getOutput" style="document"/>
<wsdl:input>
<soap12:body use="literal"/>
</wsdl:input>
<wsdlutput>
<soap12:body use="literal"/>
</wsdlutput>
</wsdlperation>
</wsdl:binding>
<wsdl:binding name="ServiceDefHttpBinding" type="xsd:ServiceDefPortType">
<http:binding verb="POST"/>
<wsdlperation name="getOutput">
<httpperation location="ServiceDef/getOutput"/>
<wsdl:input>
<mime:content type="text/xml" part="getOutput"/>
</wsdl:input>
<wsdlutput>
<mime:content type="text/xml" part="getOutput"/>
</wsdlutput>
</wsdlperation>
</wsdl:binding>
<wsdl:service name="ServiceDef">
<wsdl:port name="ServiceDefHttpSoap11Endpoint" binding="xsd:ServiceDefSoap11Binding">
<soap:address location="http://localhost:8080/axis2/services/ServiceDef"/>
</wsdl:port>
<wsdl:port name="ServiceDefHttpSoap12Endpoint" binding="xsd:ServiceDefSoap12Binding">
<soap12:address location="http://localhost:8080/axis2/services/ServiceDef"/>
</wsdl:port>
<wsdl:port name="ServiceDefHttpEndpoint" binding="xsd:ServiceDefHttpBinding">
<http:address location="http://localhost:8080/axis2/services/ServiceDef"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
9 years ago
Hi,
I'm using latest version of Axis2 - 1.4.1 and would like to know whether it supports Java Collection types like ArrayList,
HashMap and Maps etc. Currently i'm getting following exception and believe that even the WSDL generation through
Axis2 tool is not coming correct. I would appreciate for your response. thanks

Exception in thread "main" org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement nameSet
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at com.datatypes.DTImStub.fromOM(DTImStub.java:3001)
at com.datatypes.DTImStub.getData(DTImStub.java:191)
at com.datatypes.TestClient.main(TestClient.java:27)
Caused by: java.lang.Exception: org.apache.axis2.databinding.ADBException: Unexpected subelement nameSet
at com.datatypes.DTImStub$DT$Factory.parse(DTImStub.java:2949)
at com.datatypes.DTImStub$GetDataResponse$Factory.parse(DTImStub.java:1346)
at com.datatypes.DTImStub.fromOM(DTImStub.java:2995)
... 2 more
Caused by: org.apache.axis2.databinding.ADBException: Unexpected subelement nameSet
at com.datatypes.DTImStub$DT$Factory.parse(DTImStub.java:2943)
... 4 more
9 years ago
ok. let me give some more information - we have an online application running in Australia, US & europe. There is end of day operations which has to be run by USERS at the end of business hours i.e. 6 PM local time of each country and we have to restrict start of operation after 7 PM local time.
Considering that application is installed only in US, how to implement this scenario.
9 years ago
hi, we have a web application running across different timezones in different countries. but we have a calculation which is sensitive to timezone from where user is trying to access the applications.
So how to implement this feature without affecting timezone of the user.

thanks in advance...
9 years ago
Hi, We have a .net applicaton which we are converting to Java Web applicaton. IN .net application, we are using .htc files for validation and for invoking server side components. So what is the best possible solution to implement similar things in Java/Jsp?
Thanks Cameron McKenzie, for giving a very clear & comphrehensive answer.
10 years ago
Hi, I have a basic question regarding jvm. I want to know whether we have different jvm between server instances of WebSphere 6.x or all server instances share same jvm which are running on same unix box

Pramodh
10 years ago
Hi, We have a problem in ejb lookup and we are using WebSphere 6.x.

Basically if the client program and ejb application are on different server instances, they are working fine.

But if I put both client program and ejb application in same server instance, I am not able to invoke ejb, getting ClassCastException.

Our ejb are implementing remote interface and we can not change ejb application.

Please let me know how to invoke ejb application from my client from the same WebSphere instance.

Pramodh
Thanks for the reply but what I wanted to know is - how to change the default name of server server1 to someother name say myserver.
10 years ago
Hi, I want to change the default server name 'server1' to some other name in RAD6 when I am creating new profile using the command line options.

Please let me know how to give a specific name instaed of default name to my server.

thanks
10 years ago
hi, hibernate 3.x versions require j2ee 1.4.x which is supported only in RAD 6.x onwards. if you are running hibernate3.x on wsad 5.x, you get this excepiton as it supports only j2ee 1.3.x
10 years ago
is it possible to run ASP pages on RAD 6.0? If yes, how to install the ASP pages on RAD?.....Do we need plug-in for it?

Please let me know.

Pramodh
10 years ago
Hi All, We have a JSP page displaying data fetched from tables. Users can edit it and if they click on link for next page without saving it, we have to prompt the user whether to save it or not.

If they say 'yes', we have to save otherwise user can go to next page. NOw the question is, how to track changes in JSP page for all fields( I have around 60 fields in my page).

pramodh
hi, I have an object containing n number of rows of 2 properties each. The relatingship between them is one to many.

NOw I want to display only unique values for first dropbox from the object and whenver I make a selection in first dropbox, depending on that I need to display their n values in second dropbox from the object.

Can any of you help in this....

pramodh