# Input Parameter type for Service wmtnreceive

**URL:** <https://techcommunity.softwareag.com/t/input-parameter-type-for-service-wmtnreceive/108218>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [January 22, 2004, 1:15pm UTC](https://techcommunity.softwareag.com/t/input-parameter-type-for-service-wmtnreceive/108218 "2004-01-22T13:15:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kumar\_gejara](https://avatars.discourse-cdn.com/v4/letter/k/48db29/32.png) [@kumar\_gejara](https://techcommunity.softwareag.com/u/kumar_gejara)\
**Post date:** [January 22, 2004, 1:15pm UTC](https://techcommunity.softwareag.com/t/input-parameter-type-for-service-wmtnreceive/108218/1 "2004-01-22T13:15:57Z")

</div>

Hi Experts,

I am new to webMethods, Our requirement is our partner is using webMethods (SAP BC) and it has been configured with trading networks. Now We have to send a Purchase Order (IDOC, XML content) to the URL they have provided to us.

The URL is : [http://\<partnerip\>:5555/invoke/wm.tn/receive](https://http)

To post the data to this I prepared my HTTP client program using pure JAVA.

1. is it I need to post the data using parameter. Basically a webMethods Service will have some input parameter defined, like is wm.tn.receive also has some input parameter?. If so what is the data type for that?. Where can I found the service definition for that?.

2. Here my problem is I have client program to post the data to Http URL based Parameter, and also without setting any parameter also it can send xml content to service.

If I know the service definition, I can set the content type and I can post the data with parameter format OR stream format.

## The following is my client code

## URL url = new URL("[http://\<ip\>:449/invoke/wm.tn/receive");](https://http) URLConnection connection = url.openConnection(); connection.setDoOutput(true); connection.setUseCaches(false); connection.setAllowUserInteraction(false); connection.setRequestProperty(“Authorization”, "Basic " + Base64.encode(“kumar:kumar123”)); connection.setRequestProperty(“Content-type”,“application/x-www-form-urlencoded”); PrintWriter post\_req = new PrintWriter(connection.getOutputStream()); post\_req.print(“MY DATA”);

Please help me that where can I find all the details of wm.tn receive Service definition, I know that everybody uses this Url to receive docs…But I dont know the service definition…If I know the service definition I can prepare my client accordingly by considering Content type and parameter names…Or stream…Please help me in this regard…

Thanks & Regards  
Kumar

---

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [January 25, 2004, 4:37pm UTC](https://techcommunity.softwareag.com/t/input-parameter-type-for-service-wmtnreceive/108218/2 "2004-01-25T16:37:25Z")

</div>

Kumar,

Many threads are posted in this wmusers site on this question,and you can get whole java code snippet in this forum.Use search functionality provided above. (information for new folks using this forum).

HTH.

---

<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, 3:05pm UTC](https://techcommunity.softwareag.com/t/input-parameter-type-for-service-wmtnreceive/108218/3 "2021-04-02T15:05:06Z")

</div>


