In dieser Anfrage soll ich Benutzername, Passwort und einige andere Informationen im Header-Teil hinzufügen, nicht im Teil der Nutzlast.
Unterhalb des Eintrags in wsdl
Code: Select all
Code: Select all
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"fileData"
})
@XmlRootElement(name = "InputUploadCustomerDocument")
public class InputUploadCustomerDocument {
@XmlElement(name = "FileData", required = true)
protected byte[] fileData;
/**
* Gets the value of the fileData property.
*
* @return
* possible object is
* byte[]
*/
public byte[] getFileData() {
return fileData;
}
/**
* Sets the value of the fileData property.
*
* @param value
* allowed object is
* byte[]
*/
public void setFileData(byte[] value) {
this.fileData = value;
}
Hier ist die Funktion, die ich aufrufen muss
Code: Select all
@WebMethod(operationName = "UploadCustomerDocument", action = "http://tempuri.org/ISend/UploadCustomerDocument")
@WebResult(name = "ReturnUploadCustomerDocument", targetNamespace = "http://tempuri.org/", partName = "parameters")
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
public ReturnUploadCustomerDocument uploadCustomerDocument(
@WebParam(name = "InputUploadCustomerDocument", targetNamespace = "http://tempuri.org/", partName = "parameters")
InputUploadCustomerDocument parameters);
Mobile version