ashirvad jain

Ranch Hand
+ Follow
since Nov 09, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by ashirvad jain

Hi All,

For one of my project, I am using Bidirectional OneToMany Mapping for two entities. I want to maintain User as Speaker & Participants.

1) Two Entities , User and Event,

2) I am using two association relation between these two entities as below,

User [ One- Many] ---->[ Speaker] ----> Event
[ManyToOne]<----[Speaker] <-----
&
Event [One- Many] ---->[ Participant] ----> User
[ManyToOne]<----[Participant] <-----


Class User{

@Column(name="USER_ID")
private Lond Id;

@OneToMany
@JoinTable(name="Speaker",
JoinColumns={@JoinColumn(name="USER_ID")},
inverseJoinColumns={@JoinColumn(name="EVENT_ID")}
)
public Collection<Event> getEvents() {
return events;
}

@ManyToOne
@JoinTable(name="Participants",
joinColumns={@JoinColumn(name="USER_ID", insertable=false,updatable=false)},
inverseJoinColumns={@JoinColumn(name="EVENT_ID", insertable=false,updatable=false)})

public Event getEvent() {
return event;
}
}

2) Class Event{

@Column(name="EVENT_ID")
private Lond Id;

@ManyToOne
@JoinTable(name="Speaker",
joinColumns={@JoinColumn(name="EVENT_ID", insertable=false,updatable=false)},
inverseJoinColumns={@JoinColumn(name="USER_ID", insertable=false,updatable=false)})

public User getUsers() {
return user;
}

@OneToMany
@JoinTable(name="Participants",
JoinColumns={@JoinColumn(name="EVENT_ID")},
inverseJoinColumns={@JoinColumn(name="USER_ID")}
)
public Collection<User> getUsers() {
return users;
}
}
}

Questions:

1) I am getting success, when I create any user or event, it successfully updates the table(users,events,Speaker,Participants), But I am facing issues, when I am creating new Event entity
with the users which is already available in the previously created Event. it throws, exceptions.MySQLIntegrityConstraintViolationException, while creating new event.
How I can prevent this situation?

2) Is this design is good, Should I refactored it ? I am using User Entity as Speaker and participant, and thus all creating issues.


Please assist me resolve my issue, if need more details, then I can provide you.

Thanks
Hello ,

I have developed web service as per the WSDL ( contract First approach).

I have created Java artifacts , as per the WSDL using wsimport. Due to some work requirement, I have to add few more properties in the response , which are not part of the WSDL.

But now I want to have SOAP response as per the WSDL schema..

But due to some unknown reason, added properties in response is also coming in SOAP response.

How can I restrict the behaviour??

thanks in advance.

13 years ago
Hi Yatom,

As david suggested,

# long millis = file.lastModified();
# Date touchedOn = new Date(millis);

Further more , you can use DateFormat, like below,

DateFormat format=DateFormat.getDateInstance(STYLE); // STYLE="HH:MM:SS " based on your requirement.
String fileDate=format.format(touchedOn );
fileDate.equals(DateToCompareWith);

I hope this will help you.

13 years ago
Environment : jdk1.5+Apache axis1.4+Tomcat6.0

Hello Frens,


I am able to make Client stub and able to invoke service using stub methods.

But when I am trying to change my code for DII inocation , it throwing me exception like below:

********************************Exception**************************


Exception in thread "main" java.lang.ExceptionInInitializerError
at org.apache.axis.client.Service.getAxisClient(Service.java:104)
at org.apache.axis.client.Service.<init>(Service.java:113)
at client.DIIClient.main(DIIClient.java:37)
Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException) (Caused by org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException))
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370)
at org.apache.axis.components.logger.LogFactory.getLog(LogFactory.java:37)
at org.apache.axis.handlers.BasicHandler.<clinit>(BasicHandler.java:43)
... 3 more
Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException)
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
... 7 more
Caused by: java.lang.NullPointerException
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:374)
... 8 more




I am pasting the code snap here ,

*******************Actual code ,*****************



Service service=new Service();
Call call=(Call)service.createCall();
call.setTargetEndpointAddress(new URL("http://localhost:8080/axis/services/SimpleServiceSOAP"));
call.setOperationStyle(Style.DOCUMENT);
//call.setOperation("Add");
Vector responseElement=(Vector)call.invoke(new SOAPBodyElement[] {new SOAPBodyElement(makeAddRequest())});
SOAPBodyElement result=(SOAPBodyElement)responseElement.get(0);
System.out.println( "Reponse : "+result.getAsDOM().getTextContent());


**************makeAddRequest()*******************

The Sole purpose of this method is to make add Soap request for the call.

*******************************************************



Please some one guide me where i am wrong, as i am trying to learn axis, please guide me i am missing somthing for proper invocation.


Please repond me ,

Thanks .


15 years ago
I have made some changes and now start getting this exception,


at org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDSer
vice.java:561)
at org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java:
253)
at org.apache.axis.deployment.wsdd.WSDDService.<init>(WSDDService.java:2
33)
at org.apache.axis.deployment.wsdd.WSDDDeployment.<init>(WSDDDeployment.
java:192)
at org.apache.axis.deployment.wsdd.WSDDDocument.<init>(WSDDDocument.java
:78)
at org.apache.axis.utils.Admin.processWSDD(Admin.java:111)
at org.apache.axis.utils.Admin.process(Admin.java:158)
at org.apache.axis.utils.Admin.AdminService(Admin.java:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.axis.providers.java.MsgProvider.processMessage(MsgProvider
.java:126)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:
323)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454
)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:69
9)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBas
e.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:212)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ss(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
5)
at java.lang.Thread.run(Unknown Source)



Can someone suggest me what is reason behind this exception.

Thanks.
15 years ago

Env: java1.6+tomcat6.0 + apache axis1.4

I have successfully generated server stub for my webservice,using wsdl2java

After changing the stubImpl when i am depoying this generated deploy.wsdd through AxisServlet, its generates

[axis-admin] <Admin>Done processing</Admin>

But when i am checking in http://localhost:8080/axis/servlet/AxisServlet - List method it does not displaying newly deployed webservice.


************deploy.wsdd***********
<!-- Use this file to deploy some handlers/chains and services -->
<!-- Two ways to do this: -->
<!-- java org.apache.axis.client.AdminClient deploy.wsdd -->
<!-- after the axis server is running -->
<!-- or -->
<!-- java org.apache.axis.utils.Admin client|server deploy.wsdd -->
<!-- from the same directory that the Axis engine runs -->

<deployment
xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">

<!-- Services from SimpleService WSDL service -->

<service name="SimpleServiceSOAP" provider="java:RPC" style="document" use="literal">
<parameter name="wsdlTargetNamespace" value="http://example.org/SimpleService/"/>
<parameter name="wsdlServiceElement" value="SimpleService"/>
<parameter name="schemaUnqualified" value="http://example.org/SimpleService/"/>
<parameter name="wsdlServicePort" value="SimpleServiceSOAP"/>
<parameter name="className" value="org.example.SimpleService.SimpleServiceSOAPImpl"/>
<parameter name="wsdlPortType" value="SimpleService"/>
<parameter name="typeMappingVersion" value="1.2"/>
<operation name="add" qname="Add" returnQName="retNS:AddResponse" xmlns:retNS="http://example.org/SimpleService/" returnType="rtns:>AddResponse" xmlns:rtns="http://example.org/SimpleService/" soapAction="http://example.org/SimpleService/Add" >
<parameter qname="pns:AddRequest" xmlns:pns="http://example.org/SimpleService/" type="tns:InputType" xmlns:tns="http://example.org/SimpleService/"/>
</operation>
<operation name="substract" qname="Substract" returnQName="retNS:SubstractResponse" xmlns:retNS="http://example.org/SimpleService/" returnType="rtns:>SubstractResponse" xmlns:rtns="http://example.org/SimpleService/" soapAction="http://example.org/SimpleService/Substract" >
<parameter qname="pns:SubstractRequest" xmlns:pns="http://example.org/SimpleService/" type="tns:InputType" xmlns:tns="http://example.org/SimpleService/"/>
</operation>
<parameter name="allowedMethods" value="substract add"/>

<typeMapping
xmlns:ns="http://example.org/SimpleService/"
qname="ns:InputType"
type="java:org.example.SimpleService.InputType"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle=""
/>
<typeMapping
xmlns:ns="http://example.org/SimpleService/"
qname="ns:>SubstractResponse"
type="java:org.example.SimpleService.SubstractResponse"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle=""
/>
<typeMapping
xmlns:ns="http://example.org/SimpleService/"
qname="ns:>AddResponse"
type="java:org.example.SimpleService.AddResponse"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle=""
/>
</service>
</deployment>


and the exception in tomcat log i m getting are as belows:
**************************************************
org.apache.axis.deployment.wsdd.WSDDNonFatalException: java.lang.ClassNotFoundE
ception: org.example.SimpleService.InputType
java.lang.ClassNotFoundException: org.example.SimpleService.InputType
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLo
der.java:1358)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLo
der.java:1204)
at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:187)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:160)
at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:100)
at org.apache.axis.deployment.wsdd.WSDDTypeMapping.getLanguageSpecificT
pe(WSDDTypeMapping.java:183)
at org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDSe
vice.java:542)
at org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java
253)
at org.apache.axis.deployment.wsdd.WSDDService.<init>(WSDDService.java:
33)
at org.apache.axis.deployment.wsdd.WSDDDeployment.<init>(WSDDDeployment
java:192)
at org.apache.axis.deployment.wsdd.WSDDDocument.<init>(WSDDDocument.jav
:78)
at org.apache.axis.utils.Admin.processWSDD(Admin.java:111)
at org.apache.axis.utils.Admin.process(Admin.java:158)
at org.apache.axis.utils.Admin.AdminService(Admin.java:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.axis.providers.java.MsgProvider.processMessage(MsgProvide
.java:126)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java
323)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrate
y.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:45
)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:6
9)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBa
e.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App
icationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(Application
ilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapper
alve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContext
alve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.
ava:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.
ava:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVa
ve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.ja
a:212)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.jav
:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proc
ss(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:4
5)
at java.lang.Thread.run(Unknown Source)

at org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDSe
vice.java:561)
at org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java
253)
at org.apache.axis.deployment.wsdd.WSDDService.<init>(WSDDService.java:
33)
at org.apache.axis.deployment.wsdd.WSDDDeployment.<init>(WSDDDeployment
java:192)
at org.apache.axis.deployment.wsdd.WSDDDocument.<init>(WSDDDocument.jav
:78)
at org.apache.axis.utils.Admin.processWSDD(Admin.java:111)
at org.apache.axis.utils.Admin.process(Admin.java:158)
at org.apache.axis.utils.Admin.AdminService(Admin.java:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.axis.providers.java.MsgProvider.processMessage(MsgProvide
.java:126)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java
323)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrate
y.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:45
)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:6
9)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBa
e.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App
icationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(Application
ilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapper
alve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContext
alve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.
ava:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.
ava:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVa
ve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.ja
a:212)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.jav
:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proc
ss(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:4
5)
at java.lang.Thread.run(Unknown Source)

at org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDSe
vice.java:561)
at org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java
253)
at org.apache.axis.deployment.wsdd.WSDDService.<init>(WSDDService.java:
33)
at org.apache.axis.deployment.wsdd.WSDDDeployment.<init>(WSDDDeployment
java:192)
at org.apache.axis.deployment.wsdd.WSDDDocument.<init>(WSDDDocument.jav
:78)
at org.apache.axis.utils.Admin.processWSDD(Admin.java:111)
at org.apache.axis.utils.Admin.process(Admin.java:158)
at org.apache.axis.utils.Admin.AdminService(Admin.java:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.axis.providers.java.MsgProvider.processMessage(MsgProvide
.java:126)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java
323)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrate
y.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:45
)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:6
9)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBa
e.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App
icationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(Application
ilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapper
alve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContext
alve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.
ava:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.
ava:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVa
ve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.ja
a:212)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.jav
:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proc
ss(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:4
5)
at java.lang.Thread.run(Unknown Source)



Please guide me , where i am wrong.

If need more description i can provide you.

Thank you.






15 years ago
Hi pradeep,
You are right i just stated on it. I m thinking of doing this for small apply.
I already did googlig but got lot of responses as well not sure wether thery are of my use.
Actually I am missing perfect keyword for search. Can you give me the perfect word or can describe any link which
might be useful for me for the start up.
Thanks & regards.
15 years ago
Hello friends,
I am thinking of making one search option for my application ,like google search.
E.g. If i start typing ja....
then immeditely for response it will give me options like ,, java,java server pages ..all the avialable option from database.

An active search tool/text box ,which w'll generate output on the basis of keywords typed.

I have seen some of the such application in live websites (e.g google, irctc.co.in search box for train booking.)

can anyone guide me which lang or technology i use to to this.

I'll be greatful if anyone can suggest me and guide me to go further on it.

Thanks.
15 years ago
Hello,
I think you can try with filter.
I was reading filter, then came to know that you can process your request before submitting to Business Logic,
and that is also not visible to cleint or in URL.
You can work aroud filters. Maybe can help you.
Regards.
15 years ago
Thanks for your kind reply.

I some how able to solve that issue.
Actually i was troubling to get web cleint . I referred lot of document and rest info.
Actually i was facing some configuration issue with eclipse.so was not able to solve that.
But now its solved somehow

But i really appriciate your reply.

Do best and keep posting..

Thank you.
15 years ago
hello Friends
I am using AXIS1.4 fow webservice cleint.
I have generated stubs using WSDL2Java of axis.
It has generated classes and other additional class like:-

ServiceLocator
Port
PortStub
Service

But when i am using ,
Service service=new ServiceLocator();
PortStub stub=PortStub(endPoint,service);

endpoint-wsdl URl;

its giving me java.lang.NullPointerException .
PLease guide me to resolve my issue.

I can't move to axis upgarde versions.

I tried lot googling but still stuck. PLEASE PROVIDE any code snippet if possible.

thank in advance.
15 years ago
I am thinking of one-many relation(due to multiple/single answer).

Any other nice suggestion??
Hello friends,
I am bit confuse about mapping between two class/tables.
I working on one project which maintains,
question(id,sub_id,que_Text) and answer(id,que_id,ansText) 2 tables.
Now question of thinking is ,like we know we can set multiple answer for question in "answer" table so do i need to maintain(one-many relation).
But at the same time we know that question can have multiple/single answers. So what kind of relationship is better to perform??
And if you can suggets me some nice thoughtof it,its great for me....

Thanks In Advance
Thanks for your kind response.

SO now i got it .

But can you provide me more detail about its functioning and other document.

Like wise,i am seeing that some elements changes in build.xml is just everything...
but i am sure it must be more than it.
So please suggest me some nice doc or link which can give me its better idea and functioning.

Thanks.
16 years ago
Hi Ulf,
Thanks for your kind response.

Actually i ran the same thing yesterday but it was not working.
But after getting your nice response i tries the same thing now its Eureka . And now its working .

Thanks alot.

Can you suggest me more information about this ans usage. Is this really necessary for application developement.

Again Thanks.
16 years ago