cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Info*Engine Task to use with SOAP

Highlighted
Newbie

Re: Info*Engine Task to use with SOAP

Hi

> since I*E soap supports I*E groups I'd say you can just add
> the HashMap
> into a group into an element into an att:
> import com.infoengine.object.factory.*;
> ...
> HashMap map=new HashMap();
> ...
> Group g=new Group("test");
> Element e=new Element();
> g.addElement(e);
> e.addAtt(new Att("hashmap",map);
> // add group to vdb in jsp or task ...

Thanks!
But i think the SOAP-Header in the I*E task is the problem:

I try it like this:

...

...

When I send the requst, the server says:

"Invoking soap service at:
http://xxx/Windchill/servlet/RPC
Caught SOAPException (SOAP-ENV:Client): No Serializer found to serialize a 'java.util.HashMap' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'."

I can't do any modifications at the given client, so the parameter and return value have to be a HashMap.


tia,
florian
1 REPLY 1

AW: Info*Engine Task to use with SOAP

Hi

> since I*E soap supports I*E groups I'd say you can just add
> the HashMap
> into a group into an element into an att:
> import com.infoengine.object.factory.*;
> ...
> HashMap map=new HashMap();
> ...
> Group g=new Group("test");
> Element e=new Element();
> g.addElement(e);
> e.addAtt(new Att("hashmap",map);
> // add group to vdb in jsp or task ...

Thanks!
But i think the SOAP-Header in the I*E task is the problem:

I try it like this:

...

...

When I send the requst, the server says:

"Invoking soap service at:
http://xxx/Windchill/servlet/RPC
Caught SOAPException (SOAP-ENV:Client): No Serializer found to serialize a 'java.util.HashMap' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'."

I can't do any modifications at the given client, so the parameter and return value have to be a HashMap.


tia,
florian


>
>
> on the receiving side get it back as
> HashMap
> map=(HashMap)groupIn.getElementAt(i).getAtt("hashmap").getRawValue();
>
> you mustn't put any objects into the hashmap which are not
> serializable,
> and different java versions or versions of I*E may also be an issue!
>
> hth, martin
>
> Gerteisz Florian (CI/ACP2) wrote:
> > Hi all,
> >
> > I need to use java.util.HashMap as @param and @return for a
> SOAP-task.
> > Is there a way to do this?
> >
> > - --
> > Mit freundlichen Grüßen / Best regards
> >
> > Florian Gerteisz
> >
> > Robert Bosch GmbH
> > Corporate Sector Information Systems and Services
> > IT-Architecture,
> > Competence Center Engineering Applications
> > Platforms ADM, PDM (CI/ACP2)
> >
> > Postfach 30 02 20
> > 70442 Stuttgart
> > GERMANY
> > www.bosch.com
> >
> > Tel. +49 711 811-30561
> > PC-Fax +49 711 811-5181491
> > florian.gerteisz@de.bosch.com
> >
> >
> >
> > ---
> >
> > You are currently subscribed to infrastructure.
> > To unsubscribe send a blank e-mail to
> -.
> >
> > For assistance, email us at - or find
> other contacts at www.ptcuser.org/org/contacts.html.
> >
> > PTC/USER and the PTC/USER logo are registered trademarks of
> PTC/USER, Inc.
> > Pro/ENGINEER is a registered trademark of PTC.
> >
> > Message authors are solely responsible for the content of
> their posts.
> >
>