質問編集履歴
1
内容の変更
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Python
|
1
|
+
PythonのSOAPについて
|
test
CHANGED
@@ -10,26 +10,64 @@
|
|
10
10
|
|
11
11
|
|
12
12
|
|
13
|
-
|
13
|
+
下記のxmlを作成するのが目的となります。
|
14
14
|
|
15
|
-
|
15
|
+
sudsというモジュールを試してみましたが上手くいきませんでした。
|
16
|
+
|
17
|
+
ヒントでも十分ですのでよろしくお願いいたします。
|
16
18
|
|
17
19
|
|
18
20
|
|
19
|
-
```
|
21
|
+
```xml
|
20
22
|
|
21
|
-
ns
|
23
|
+
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:sample_test_1" xmlns:stan="http://sample_test_2">
|
22
24
|
|
23
|
-
a
|
25
|
+
<soapenv:Header>
|
24
26
|
|
25
|
-
rea
|
27
|
+
<urn:AuthenticationInfo>
|
26
28
|
|
27
|
-
|
29
|
+
<urn:userName>SAMPLE</urn:userName>
|
28
30
|
|
31
|
+
<urn:password>SAMPLEPASSWORD</urn:password>
|
29
32
|
|
33
|
+
<!--Optional:-->
|
34
|
+
|
35
|
+
<urn:authentication></urn:authentication>
|
36
|
+
|
37
|
+
<!--Optional:-->
|
38
|
+
|
39
|
+
<urn:locale></urn:locale>
|
40
|
+
|
41
|
+
<!--Optional:-->
|
42
|
+
|
43
|
+
<urn:timeZone></urn:timeZone>
|
44
|
+
|
45
|
+
</urn:AuthenticationInfo>
|
46
|
+
|
47
|
+
</soapenv:Header>
|
48
|
+
|
49
|
+
<soapenv:Body>
|
50
|
+
|
51
|
+
<urn:testtesttesttest>
|
52
|
+
|
53
|
+
<stan:userName2>TESTTEST</stan:userName2>
|
54
|
+
|
55
|
+
<stan:password2>TESTTESTPASSWORD</stan:password2>
|
56
|
+
|
57
|
+
</urn:testtesttesttest>
|
58
|
+
|
59
|
+
</soapenv:Body>
|
60
|
+
|
61
|
+
</soapenv:Envelope>
|
30
62
|
|
31
63
|
```
|
32
64
|
|
33
65
|
|
34
66
|
|
67
|
+
|
68
|
+
|
69
|
+
参考サイト:https://fedorahosted.org/suds/wiki/Documentation
|
70
|
+
|
71
|
+
|
72
|
+
|
35
73
|
よろしくお願いいたします。
|