2016-06-08 2 views
1

6 세 또는 7 세 게시물에서 관련 질문을 보았지만 좋은 대답을 찾지 못했습니다. DELV_NUM 요소는 WSDL에 있지만, 선택 사항으로 표시되어 있으며 mybe가 비눗물을 무시한 이유라고 생각합니다. WSDL 파일을 만들지 않았으므로 WSDL 파일을 변경할 수 없습니다. Soapui 메시지처럼 나타나도록 suds 메시지를 수정할 수 있으면 응답이 정상적으로 작동합니다. 인덕 티브 오토메이션의 점화 플랫폼의 일부이기 때문에 비난을 수정하고 수정하는 것으로 제한됩니다. 메시지가 누락되었습니다. 요소. Soapui가 WSDL에서 올바른 메시지를 생성합니다.

이것은 동일한 WSDL

enter image description here

I가 WSDL을 공유를 사용 Soapui로부터 메시지 요청이다 비눗물

enter image description here

로부터 전송 된 메시지 요청 인 도움이된다면. 감사합니다

답변

0

요청에 요소를 추가하려면 client.factory.create() 메소드를 사용할 수 있습니다.

솔루션은 다음과 같이 일할 수 :

# Create a Processing_Req object 
processing_req = client.factory.create('{http://wackerneuson.com/wn/in/Conveyor_Belt/ConveyorBeltProcessing}Processing_Req') 

# Create a Record object which is a child of Processing_Req 
record = client.factory.create('{http://wackerneuson.com/wn/if/Conveyor_Belt/ConveyorBeltProcessing}Processing_Req.record') 

# set the DELV_NUM element which is a child of the record element. 
record.DELV_NUM = '82934258' 

# append the new record object to the processing_req object 
processing_req.record.append(record) 

# make the request with the new record object created and populated 
request = client.service.Processing_OS(record) 
+0

이것은 우리가 문제를 해결하는 방법입니다 –