function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
czhangczhang 

Can I check the request sent by callout method?

I'm sending request to ingenix,it requires 'Message Format','Username' property in header info,and the header must be followed by one  blank line and then the body of the HTTPS request.

So I wite the request like this:

req.setHeader('Message+Format','X12');
req.setHeader('Username','name');
req.setBody('\r' + 'some body content');

But the response always complains element missing....

Is there something wrong?Or is there a way that I can see the request sent out ?

 

Anyone know how to add a blank line between header and body?Any suggestion will be appreciated....

 

Thanks

Devendra NataniDevendra Natani

Hi,

 

Can you please share the soap envelope request? Have you set the soapAction and endPoint?

 

Thanks,
Devendra Natani

Blog 

czhangczhang

The sample request is like this:

Username: some_user
Password: some_password
Organization: some_org_id
Message Format: X12
Message Type: ANSI
Usage: TEST
Body Length: 1174

ISA|00|          |00|          |

 I think I've set url correctly...

 

Btw,I use curl  to set  --user  separately,then set -H and -d paramater,it seems got the right answer....

I've worked on this for two days,which is really frustrating.....