# problem by Web service call

**URL:** <https://techcommunity.softwareag.com/t/problem-by-web-service-call/76380>\
**Category:** Forum\
**Tags:** Former-Crossvision-Products, Application-Composer\
**Created:** [March 13, 2008, 2:03pm UTC](https://techcommunity.softwareag.com/t/problem-by-web-service-call/76380 "2008-03-13T14:03:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![azamat](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@azamat](https://techcommunity.softwareag.com/u/azamat)\
**Post date:** [March 13, 2008, 2:03pm UTC](https://techcommunity.softwareag.com/t/problem-by-web-service-call/76380/1 "2008-03-13T14:03:37Z")

</div>

Hello there,

Application Composer runs on Linux/Unix. I tried to implement the Java Processing.

[http://techcommunity.softwareag.com/ecosystem/documentation/crossvision/xci/impl/javaproc.htm#javaproc](http://techcommunity.softwareag.com/ecosystem/documentation/crossvision/xci/impl/javaproc.htm#javaproc)

But at the “Integrating Web service” there are following problems:

1. whenn i use “new Mapped Web Service Call”,  
In the mapping view, the structure of the web service can’t be showed. See please the attached picture - marked with “1.mapped WS call”.  
what could the reason be?

2. Then i tried use direct web service call,  
It shows, the two methods wsdirect\_echoDirect\_prepare() and wsdirect\_echoDirect() are undefined. (see the attached picture - marked with “2. direct call”)  
Should I implement this two methods? Maybe can somebody show me codes of wsdirect\_**_prepare() and wsdirect_**() from any examples?

can anybody help me? Thanks alot!

best regards

 ![WebserviceCall.JPG](https://global.discourse-cdn.com/techcommunity/original/2X/e/eeb90eb203e5f3b53c35696ef6926bb1c4b5f0bc.jpeg)

---

<div class="post-metadata">

**Author:** ![Christine\_Zimmermann](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@Christine\_Zimmermann](https://techcommunity.softwareag.com/u/Christine_Zimmermann)\
**Post date:** [March 13, 2008, 4:49pm UTC](https://techcommunity.softwareag.com/t/problem-by-web-service-call/76380/2 "2008-03-13T16:49:38Z")

</div>

Hi Azamat,

1. It could be related to your wsdl. Do you see any error messages in the Eclipse error view? Could you please send the wsdl file?  
It could of course also be that the mapping view does not work properly on Unix. The XCI Development environment is not supporte on UNIX. Development should be done on Windows, then export your project and import it in your UNIX installation.

2. The sceen shot you sent looks good. You can also find a corresponding “wsdirect-sample” in the xcidemos2 project. The calls are used in the following way:

```auto

DataObject request = wsdirect_mymethod_prepare();	
// ... fill the request object with data if	
DataObject response = super.wsdirect_mymethod(request);
```

Best Regards,  
Christine

---

<div class="post-metadata">

**Author:** ![azamat](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@azamat](https://techcommunity.softwareag.com/u/azamat)\
**Post date:** [March 13, 2008, 5:59pm UTC](https://techcommunity.softwareag.com/t/problem-by-web-service-call/76380/3 "2008-03-13T17:59:28Z")

</div>

Hi, Christine,

1. Actually, this wsdl file is from example - xcidemos2. I have imported this demos in CentraSite and in Application Composer. the wsdl file see please attached file (DEMO\_xcidemos2ServiceService.default.wsdl).

But i’m working also with a real SOA-project. I have generated the wsdl file from a IDL-file,which extracted from Natural. Then I have registered and published this wsdl file as web service in CentraSite. and now i should to integrate the Web service in application composer.  
When i draged the Web Service from CentraSite (Metadata Tree) to the “Interface” of my project. There is one error in Error log:

```auto
No source node found in InboundMapping document
```

but it’s also stored in “interface”. (btw, with the demo service - xcidemos2Service there is no such error.)  
However, i can’t mapping with both web services.

1. I wrote these lines

```auto
DataObject request = wsdirect_mymethod_prepare();   
// ... fill the request object with data if   
DataObject response = super.wsdirect_mymethod(request); 
```

in my project, but it shows “the method wsdirect\_echo\_prepare() is undefined”.

I didn’t finde the source code of these two methods in exidemos2 project. ☹

best regards

---

<div class="post-metadata">

**Author:** ![azamat](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@azamat](https://techcommunity.softwareag.com/u/azamat)\
**Post date:** [March 13, 2008, 6:08pm UTC](https://techcommunity.softwareag.com/t/problem-by-web-service-call/76380/4 "2008-03-13T18:08:56Z")

</div>

see please the rar file  
[wsdl.rar](https://techcommunity.softwareag.com/uploads/short-url/6QixmpzzMtXtPd32BH6yeCXf8Ec.rar) (4.63 KB)

---

<div class="post-metadata">

**Author:** ![Christine\_Zimmermann](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@Christine\_Zimmermann](https://techcommunity.softwareag.com/u/Christine_Zimmermann)\
**Post date:** [March 13, 2008, 6:38pm UTC](https://techcommunity.softwareag.com/t/problem-by-web-service-call/76380/5 "2008-03-13T18:38:00Z")

</div>

Hi Azamat,

If you have the xcidemos2 project imported into you Eclipse:  
In Project Explorer go to xcidemos2/composites/wsdirect/methods  
Double-Click “onCallWsDirectAppend”. The corresponding Java code will be opened in the Java Editor.

The wsdirect\_\* methods are automatically generated when you select “New Web Service Call” on the WebServices Node under a Composite.

If these convenient Eclipse Features do not work well under UNIX, better switch to an Eclipse under Windows. It is really simple to import/export Composer projects between different systems.

Best Regards,  
Christine

---

<div class="post-metadata">

**Author:** ![azamat](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@azamat](https://techcommunity.softwareag.com/u/azamat)\
**Post date:** [March 13, 2008, 7:17pm UTC](https://techcommunity.softwareag.com/t/problem-by-web-service-call/76380/6 "2008-03-13T19:17:35Z")

</div>

Hi Christine,

I just want to tell you. This problem ist solved.

I just wrote the methods wsdirect\_\* in my code, and now I have called web services successfully.

Thanks for your support and helping! 😉

best regards

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:49pm UTC](https://techcommunity.softwareag.com/t/problem-by-web-service-call/76380/7 "2021-04-02T14:49:15Z")

</div>


