-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
example client with mtom attach #77
Comments
Hello, But I can point you to files you should investigate, if you want to do it "manually".
`` Also you can use use BeSimple\SoapClient\WsSecurityFilter;
$wssFilter = new WsSecurityFilter($addTimestamp = true, $expires = 300, $actor = null);
$wssFilter->addUserData(
'username',
'password',
WsSecurityFilter::PASSWORD_TYPE_DIGEST // or WsSecurityFilter::PASSWORD_TYPE_TEXT
);
$soapClient->getSoapKernel()->registerFilter($wssFilter); |
Thanks for the answer and for the detailed information. |
BeSimple provides a test for MTOM. You can start server with shell script If you will still have problems, email me your wsdl. I might prepare sample for it. |
Sorry @minimihi i have same problem. I can not generate a MTOM. :( could you tell me what are the basic steps to create a multipart message to send with curl ? Help me. Please Thanks |
i need to send a file using MTOM and BeSimple soap with php. Does anyone has an example to show me? |
As minimihi already mentioned have a look at the tests for examples how to use MTOM: https://github.com/BeSimple/BeSimpleSoap/tree/master/src/BeSimple/SoapClient/Tests/ServerInterop |
Hello, |
Hi, i sent some files using BeSimple/MTOM and used the BeSimple/SoapClient/Tests/ServerInterop/MTOMClient.php as example. I did not have to understand the way the library works. I put the document content in my classe and call the service using the besimple soap client. BeSimple make the work of mount the mtom request, putting de xop link in the middle of the message and attaching the binary content at the end of the message. Marcos. |
Thanks Marcos for your help. I don't try anymore to study the mechanism and work with the example. But I have difficulties to set the Content-Type. (It is Content-Type: application/octet-stream; charset=utf-8 and I would like application/pdf) |
Good morning, thanks for the BeSimple bundle, it works great!
Since I'm new to using MTOM mechanism and since it's not easy to find php code that supports MTOM attachments in SOAP messages, I would need an example.
In particular, i have to implement a SOAP client that sends a message with attachment (using MTOM mechanism) to a WS service listening. My client without attachments works.
My problem that i can not manage attachment part, I do not know what methods to call and how.
I set the header but I can not dial the message header and attachment.
It would be possible to have an example of a client sending a request with MTOM attachment ?
I attach my code.
Thank you in advance.
--- MY CODE ---
$nome = "richiesta_".time().".zip";
$clientbuilder = $this->get('besimple.soap.client.builder.client_name');
$soapClient= $clientbuilder->build();
The text was updated successfully, but these errors were encountered: