Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Reference to eMessage in eInput is getting lost
Reference to eMessage in eInput is getting lost [message #172970] Wed, 05 July 2006 08:05 Go to next message
Saurabh Dravid is currently offline Saurabh DravidFriend
Messages: 20
Registered: July 2009
Junior Member
I am trying to creating my own WSDL editor. In my editor I have the
functionality to add an Operation to PortType. I am using the following
code to do it

LINE #1 - Operation newOperation = createNewOperation();
LINE #2 - PortType portType = getPortType(definition);
LINE #3 -
newOperation.setEnclosingDefinition(portType.getEnclosingDef inition());
LINE #4 - portType.addOperation(newOperation);


public static PortType getPortType(definition){
List portTypeList = definition.getEPortTypes();
PortType portType = (PortType) portTypeList.get(0);
return portType;
}

After the execution of LINE #1 My newOperation -> eInput object contains
the reference to eMessage object, but after the execution of LINE #4 ,
eMessage reference inside eInput is getting set to null. I am thinking
that I am missing some "reconcileReferences" api, so the reference is
getting set to null. Any idea about this problem.

Thanks
Re: Reference to eMessage in eInput is getting lost [message #173102 is a reply to message #172970] Wed, 05 July 2006 14:32 Go to previous message
Eclipse UserFriend
Originally posted by: valentinbaciu.hotmail.com

Can you please provide details about the version of WTP you are using.
Also, providing a concise runnable (JUnit) test case is always appreciated.
I'd like to see what's inside createNewOperation for example.

If the problem is consistently reproducible you can always open a bug.

Regards, Valentin

"Saurabh Dravid" <sadravid@in.ibm.com> wrote in message
news:208e8138540c384b5830a7e3bf4ffb97$1@www.eclipse.org...
> I am trying to creating my own WSDL editor. In my editor I have the
> functionality to add an Operation to PortType. I am using the following
> code to do it
>
> LINE #1 - Operation newOperation = createNewOperation();
> LINE #2 - PortType portType = getPortType(definition);
> LINE #3 -
> newOperation.setEnclosingDefinition(portType.getEnclosingDef inition());
> LINE #4 - portType.addOperation(newOperation);
>
>
> public static PortType getPortType(definition){
> List portTypeList = definition.getEPortTypes();
> PortType portType = (PortType) portTypeList.get(0);
> return portType;
> }
>
> After the execution of LINE #1 My newOperation -> eInput object contains
> the reference to eMessage object, but after the execution of LINE #4 ,
> eMessage reference inside eInput is getting set to null. I am thinking
> that I am missing some "reconcileReferences" api, so the reference is
> getting set to null. Any idea about this problem.
>
> Thanks
>
>
>
Previous Topic:problem with validation of java-produced xml files (Properties-Class)
Next Topic:Tomcat, deploys to system temp directory
Goto Forum:
  


Current Time: Mon May 13 23:14:30 GMT 2024

Powered by FUDForum. Page generated in 0.03173 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top