Skip to Content
0
Former Member
Oct 20, 2011 at 10:41 AM

B1WS related problem...

20 Views

hi expert ,

i am new in B1WS,so please solve my problem.

Q-whats wrong with following code

// Create Service WebReference
BPWebRef.BusinessPartnersService bpsService = new
BPWebRef.BusinessPartnersService();
// MsgHeader class
BPWebRef.MsgHeader msgheader = new BPWebRef.MsgHeader();
msgheader.SessionID = DIServerSessionID;
msgheader.ServiceName = MsgHeaderServiceName.BusinessPartnersService;
msgheader.ServiceNameSpecified = true;
bpsService.MsgHeaderValue = msgHeader;
// fill business partner class
BPWebRef.BusinessPartner bp = new BPWebRef.BusinessPartner();
bp.CardCode = "MyBPCardCode";
u2026
// service command call
BPWebRef.BusinessPartnerParams bpParams = bpsService.Add(bp);

ERROR---The request failed with HTTP status 400: Bad Request.

Best Regards

sanoj