How to invoke MobileFirst adapters with curl and SOAP? -
good day,
we have requirement call mobilefirst adapter via curl , soap, ommiting authentication.
an example how curl , application/x-www-form-urlencoded looks this, require invoke adapter using soap.
curl -xpost -d 'adapter=pushadapter&procedure=sendnotifications¶meters=["[\"usera\",\"userb\"]", "pushed.you"]' http://localhost:10080/application/invoke
the reason is, want trigger sending pushnotifications through network zone allows soap.
we open different suggestions, implementing new javaadapter (not js), implementing webservice, or pops fulfil requirement in acceptable way.
i hope can come idea how call adapters via soap, ommiting authentication.
thank you, gizmore
---- edit ---
i added new java adapter, video hasan suggests. thank hint :)
there added webservice this:
@webservice @path("/soap") @oauthsecurity(enabled=false) // disable imfauthentication :) public class externalpushservice { @post @path("/push") @webmethod(action="push") public string push(@webparam(name="name") string name) { return name + "abc"; } }
i can http post requests http://localhost:10080/app/adapters/pushbridge/soap/push endpoint, soap not parsed. instead complete envelope in "name" parameter. if soap call pushbridge/soap, 405 method not allowed.
does have idea, how can soap working out of box there?
answer is: no
when adding @webservice in java adapter warring facing:
problem description:this annotation requires web service project. convert java project web project targeting specified runtime environment
soap base service based on jax-ws specification.
but
java adapters based on jax-rs specification. https://developer.ibm.com/mobilefirstplatform/documentation/getting-started-7-0/server-side-development/java-adapter/
Comments
Post a Comment