|
Re: Reference to eMessage in eInput is getting lost [message #173102 is a reply to message #172970] |
Wed, 05 July 2006 14:32 |
Eclipse User |
|
|
|
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
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04388 seconds