[idempiere] iDempiere test webservice REST API NOT WORKING

已查看 356 次
跳至第一个未读帖子

quynh...@gmail.com

未读,
2022年6月14日 10:40:062022/6/14
收件人 idem...@googlegroups.com

Hi Everyone,

 

I tried to try webservice but got error like below. Can anyone help me?

 

Exception on SOAPUI

 

 

Exception on Eclipse:

 


Regards,

 

image001.jpg
image002.jpg

quynh...@gmail.com

未读,
2022年6月21日 09:42:032022/6/21
收件人 idem...@googlegroups.com

Hi Evereyone,

 

Has anyone encountered an error like this?

image001.jpg
image002.jpg

Anozi Mada

未读,
2022年6月21日 10:33:092022/6/21
收件人 iDempiere
Your request is using json but the error indicate that it expect xml type. Did you set the Content-Type and Accept headers to application/json?
Also you might want to check the new REST plugin here https://github.com/bxservice/idempiere-rest

Regards,
Anozi Mada

Anozi Mada

未读,
2022年6月21日 10:51:002022/6/21
收件人 iDempiere
Wait I think I misread the stack trace. I guess you need to debug it to know the actual exception that caused InvocationTargetException.
But I recommend just use the new rest plugin.

quynh...@gmail.com

未读,
2022年6月25日 23:52:142022/6/25
收件人 idem...@googlegroups.com

Thanks very much, but I want to use it for both soap and rest. Have you found the cause of the error yet?

--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/f2b46d13-96ab-4d8c-91cf-aad943b67d12n%40googlegroups.com.

Anozi Mada

未读,
2022年6月26日 04:59:402022/6/26
收件人 iDempiere
You need to debug it yourself. I'm not using it and I don't have the data setup ready.

Carlos Antonio Ruiz Gomez

未读,
2022年7月16日 09:45:142022/7/16
收件人 idem...@googlegroups.com
The message is wrong, it worked fine for me testing in postman with this one:
{
"ModelCRUDRequest": {
"ModelCRUD": {
"serviceType": "ReadBPartner",
"TableName": "C_BPartner",
"RecordID": 119,
"Action": "Read"
},
"ADLoginRequest": {
"user": "{{userName}}",
"pass": "{{password}}",
"lang": "{{language}}",
"ClientID": "{{clientId}}",
"RoleID": "{{roleId}}",
"OrgID": "{{organizationId}}",
"WarehouseID": "{{warehouseId}}",
"stage": "9"
}
}
}

Regards,

Carlos Ruiz


El 14/6/22 a las 16:39, quynh...@gmail.com escribió:

Tayyoo

未读,
2022年7月25日 04:21:552022/7/25
收件人 iDempiere
Hello everyone, i got some errors that related with this topic.

I execute the CompositeRequest using JSON format but the response from server is 415 Unsupported Media Type.  
Here is my request header and request body in Postman. I hope someone can help me :)

Thank you guys.

Regard, 
AN'IM FALAHUDDIN
request_header.jpg
response.jpg
request.json
request_body.jpg

Heng Sin Low

未读,
2022年7月25日 04:37:322022/7/25
收件人 idem...@googlegroups.com
This is only available for iDempiere 9+, are you using iD9 ?

--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.

Tayyoo

未读,
2022年7月25日 04:49:062022/7/25
收件人 iDempiere
Thanks hengsin for your response.

Yes, i've already using iDempiere 9. When i execute the ModelCRUDRequest it's working fine, but i got errors when using CompositeRequest.

Regards,
AN'IM FALAHUDDIN

Heng Sin Low

未读,
2022年7月25日 05:15:372022/7/25
收件人 idem...@googlegroups.com
ic, perhaps it is not implemented for CompositeRequest, I've never used CompositeRequest before.

Tayyoo

未读,
2022年7月25日 05:49:132022/7/25
收件人 iDempiere
Any clue to make sure it's not implemented or other clue to make it happen for CompositeRequest mr. hengsin?

Regards,
AN'IM FALAHUDDIN

Tayyoo

未读,
2022年7月25日 06:13:422022/7/25
收件人 iDempiere
Ohh may be i must change the CompositeService.java to consume and produce not only application/xml but also application/json

Heng Sin Low

未读,
2022年7月25日 21:44:242022/7/25
收件人 idem...@googlegroups.com
Yes, that might fix the problem.

Tayyoo

未读,
2022年8月30日 04:26:252022/8/30
收件人 iDempiere
I've tried and it works for me thanks hengsin

Tayyoo

未读,
2022年8月30日 04:27:592022/8/30
收件人 iDempiere
I have another question :D
How we upload image via idempiere webservice??

On Tuesday, July 26, 2022 at 8:44:24 AM UTC+7 hengsin wrote:

Anozi Mada

未读,
2022年8月30日 04:35:292022/8/30
收件人 iDempiere
Please create a new post/thread.

Tayyoo

未读,
2022年8月30日 05:16:292022/8/30
收件人 iDempiere
I apologize for my mistakes. I will create new thread about my question Thankyou.
回复全部
回复作者
转发
0 个新帖子